Read our Image API guide for an explanation of these blocks.
Draws the first image on top of the second image at the specified location.
drawImageOnImage([IMAGE], [IMAGE], [INT], [INT], [BLEND MODE]);
Draws the given text (using a font) on top of the image at the specified location.
drawTextOnImage([IMAGE], [TEXT], [INT], [INT], [FONT]);
Replaces all pixels in the image with the given color.
fillImage([IMAGE], [COLOR]);
Creates a color from red, green, blue channels. Numbers must be between [0-255] inclusive.
Utils.getColorRGB([INT], [INT], [INT])
Clears out the specified part of the image by making those pixels transparent.
clearImagePartially([IMAGE], [INT], [INT], [INT], [INT]);
Clears out the entire image by making its pixels transparent.
clearImage([IMAGE]);
Clears out the image using the second image as a mask. The second image will "cut out" pixels from the first. If using "retain", will do the opposite -- it will clear out all pixels except for those that are in the mask.
clearImageUsingMask([IMAGE], [IMAGE], [INT], [INT]);
retainImageUsingMask([IMAGE], [IMAGE], [INT], [INT]);
Applies the given effect to the image.
filterImage([IMAGE], [EFFECT]);
Flips the image horizontally or vertically.
flipImageHorizontal([IMAGE]);
flipImageVertical([IMAGE]);
Replaces all pixels of the first color with the second color in the image.
imageSwapColor([IMAGE], [COLOR], [COLOR]);
When setting many pixels at a time, this tells the system not to push an image update until you have finished your work. A must-use for performance reasons.
[IMAGE].lock();
[ACTIONS]
[IMAGE].unlock();
Sets a pixel in the image to the specified color.
imageSetPixel([IMAGE], [INT], [INT], [COLOR]);
Returns the color for the specified pixel in the image.
imageGetPixel([IMAGE], [INT], [INT])