width, read-only. The width of the image.
width
height, read-only. The height of the image.
height
stride, read-only. The number of bytes per image row.
stride
format, read-only. The PixelFormat of the image.
format
getPixel (x, y), reads a color from the given coordinate of the image.
getPixel (x, y)
x
y
putPixel (x, y, color), writes the color onto the image at the the given coordinate.
putPixel (x, y, color)
color
clear (color), clears the image with the specified color.
clear (color)
putImageData (data), writes the given pixels onto the image. Must be the same size as the image.
putImageData (data)
data
getImageData (), creates an array containing all of the image's pixels.
getImageData ()
There was an error while loading. Please reload this page.