ResourceImporterBitMap

继承: ResourceImporter < RefCounted < Object

导入BitMap资源(布尔值的2D数组)。

描述

BitMap资源通常用作TextureButtonTouchScreenButton中的点击掩码。

属性


属性说明

int create_from = 0 🔗

用于生成位图的数据源。

Black&White:HSV值大于threshold的像素将被视为“启用”(bit istrue)。如果像素低于或等于阈值,则将被视为“禁用”(bit isfalse)。

Alpha:alpha值大于threshold的像素将被视为“启用”(bit istrue)。如果像素低于或等于阈值,则将被视为“禁用”(bit isfalse)。


float threshold = 0.5 🔗

用于确定哪些位应被视为启用或禁用的阈值。另请参见create_from