new

fun new(rgba: ReadonlyArray<Double>, width: Double, height: Double): Promise<Image>(source)
fun new(rgba: Uint8Array<*>, width: Double, height: Double): Promise<Image>(source)
fun new(rgba: ArrayBuffer, 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.