Image.getPixelArray

Get the read-only array of pixels that make up the image.

The returned value points to an array of RGBA pixels made of 8 bits integers components. The size of the array is: width * height * 4 (getSize().x * getSize().y * 4).

Warning: the returned slice may become invalid if you modify the image, so you should never store it for too long.

class Image
const
const(ubyte)[]
getPixelArray
()

Return Value

Type: const(ubyte)[]

Read-only array of pixels that make up the image.

Meta