new
external fun new(rgba: ReadonlyArray<Double>, width: Double, height: Double): Promise<Image>(source)
Creates a new Image using RGBA data, in row-major order from top to bottom, and with specified width and height.
The buffer must contain exactly width * height * 4 bytes. Unlike {@linkcode Image.fromBytes} and {@linkcode Image.fromPath} this does not decode an image format, so it requires no extra Cargo feature.
Since
2.0.0