Readonlyis_True if there is a custom selection
The override can be set to true to indicate that the whole texture is selected, or false, which indicates that nothing is selected. Null indicates a custom selection
The array does not exist by default to save memory, this activates it.
Test whether painting is allowed at a specific pixel
X coordinate
Y coordinate
Boolean or value of the pixel
Change the size of the matrix. Unless using overrides, the selection gets lost.
Whether the size had to be changed
If there was a selection, whether override or not, clear it
Run a method on each pixel, whether selected or not
Function to run per pixel
Get the value at the specified pixel
X coordinate
Y coordinate
The value of the targeted pixel
Return the smallest possible rectangle that contains all of the selection
If true, if there is no selection, the bounding box will still cover the entire area
Get the value at the specified pixel directly without override and bounds check
X coordinate
Y coordinate
Checks whether a selection is present and contains selected pixels
Mask the provided canvas using the selection
Canvas 2D context
Position offset of the canvas, e. g. when using a layer
Set the value at a specified pixel
X coordinate
Y coordinate
Change override mode
Return the selection simplified into non-overlapping boxes. Boxes are [x, y, width, height].
Shift custom selections by a specified offset
An Int Matrix holds an int (unsigned 8 bit) for each pixel in a matrix, via array. The override property can be used to set an override value for the entire area. This is used for texture selections.