Image.createMaskFromColor

Create a transparency mask from a specified color-key.

This function sets the alpha value of every pixel matching the given color to alpha (0 by default) so that they become transparent.

class Image
void
createMaskFromColor
(
,
ubyte alpha = 0
)

Parameters

alpha
Type: ubyte

Alpha value to assign to transparent pixels

Meta