Companion

Functions

Link copied to clipboard

Creates a new image using the provided bytes by inferring the file format. If the format is known, prefer @link Image.fromPngBytes or @link Image.fromIcoBytes.

Link copied to clipboard

Creates a new image using the provided path.

Link copied to clipboard
fun new(rgba: ArrayBuffer, width: Double, height: Double): Promise<Image>
fun new(rgba: Uint8Array<*>, width: Double, height: Double): Promise<Image>
fun new(rgba: ReadonlyArray<Double>, width: Double, height: Double): Promise<Image>

Creates a new Image using RGBA data, in row-major order from top to bottom, and with specified width and height.