Layer.setMaskPixel

Function/Meaning
Setting the mask image value
Type
Method of the Layer class
Syntax
setMaskPixel(x, y, value)
Arguments
x Specifies the x-coordinate (in layer image coordinates) where the value is to be set.
y Specifies the y-coordinate (in layer image coordinates) where the value is to be set.
value Specifies the value to be set (0-255).
Return Value
None (void)
Description
Sets the value (0-255) at an arbitrary position in the layer mask image (the image holding opacity).
An exception occurs if a position invalid as image coordinates (out of range) is specified.