Layer.getMaskPixel

Function/Meaning
Get mask image value
Type
Method of Layer class
Syntax
getMaskPixel(x, y)
Arguments
x Specifies the x-coordinate (in layer image coordinates) to get the value from.
y Specifies the y-coordinate (in layer image coordinates) to get the value from.
Return Value
Mask image value ( 0 - 255 )
Description
Gets 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.