Layer.setMainPixel

Function/Meaning

Main image color settings

Type
Layerclassmethod of
Syntax
setMainPixel(x, y, color)
Arguments
x

Specifies the x coordinate (in the image coordinates of the layer) for which you want to set the color.

y

Specifies the y coordinate (in the image coordinates of the layer) to set the color.

color

Specify the color to be set in the 0xRRGGBB format.

Return value
None (void)
Explanation

Layer Sets the color at any position on the main image (the image that retains the color).
An exception is thrown if you specify an invalid (out of range) position as the image coordinates.