draw
Draws a pixel on the current image.
Return
A new Image object with the drawn pixel on the image
Parameters
The X coordinate of the pixel
The Y coordinate of the pixel
Draws a source image onto this image at the specified destination rectangle, using the specified source rectangle and tint color.
Return
A new Image object with the source image drawn onto it.
Parameters
The source image to draw from.
The x-coordinate of the source rectangle's top-left corner.
The y-coordinate of the source rectangle's top-left corner.
The width of the source rectangle.
The height of the source rectangle.
The x-coordinate of the destination rectangle's top-left corner.
The y-coordinate of the destination rectangle's top-left corner.
The width of the destination rectangle.
The height of the destination rectangle.
The color to tint the drawn image. Default is white (no tint).
Draws the entire source image onto this image, scaling it to fit the dimensions of this image, using the specified tint color.
Return
A new Image object with the source image drawn onto it.
Parameters
The source image to draw from.
The x-coordinate of the destination rectangle's top-left corner.
The y-coordinate of the destination rectangle's top-left corner.
The color to tint the drawn image. Default is white (no tint).