Image.read

Reads an image from an array of pixels.

Parameters

width
Type: size_t

The number of columns in the image.

height
Type: size_t

The number of rows in the image.

map
Type: string

A string describing the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha

pixels
Type: T[]

The pixel data.

Meta