An image.

Used by Window.setIcon.

This describes a single 2D image with 32-bit pixels, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.

Constructor

new(width:Int, height:Int, pixels:Array<UInt8>)

Construct a new image.

Parameters:

width

The width, in pixels, of the image.

height

The height, in pixels, of the image.

pixels

The pixel data of the image, arranged left-to-right, top-to-bottom.

Variables

width:Int

The width, in pixels, of this image.

height:Int

The height, in pixels, of this image.

pixels:Array<UInt8>

The pixel data of this image, arranged left-to-right, top-to-bottom.