- _getData
Dictionary _getData()
- _setData
void _setData(Dictionary arg0)
- create
void create(Vector2 size)
Creates a bitmap with the specified size, filled with false.
- createFromImageAlpha
void createFromImageAlpha(Image image, double threshold)
Creates a bitmap that matches the given image dimensions, every element of the bitmap is set to false if the alpha value of the image at that position is equal to threshold or less, and true in other case.
- getBit
bool getBit(Vector2 position)
Returns bitmap's value at the specified position.
- getSize
Vector2 getSize()
Returns bitmap's dimensions.
- getTrueBitCount
long getTrueBitCount()
Returns the amount of bitmap elements that are set to true.
- growMask
void growMask(long pixels, Rect2 rect)
- opAssign
BitMap opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(BitMap other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opaqueToPolygons
Array opaqueToPolygons(Rect2 rect, double epsilon)
- setBit
void setBit(Vector2 position, bool bit)
Sets the bitmap's element at the specified position, to the specified value.
- setBitRect
void setBitRect(Rect2 p_rect, bool bit)
Sets a rectangular portion of the bitmap to the specified value.
Boolean matrix.
A two-dimensional array of boolean values, can be used to efficiently store a binary matrix (every matrix element takes only one bit) and query the values using natural cartesian coordinates.