Cursor


Description:

public Cursor (uint8[] pixels, int pitch, int width, int height, int x0, int y0, Array<Color> colors)

Create a new cursor using the data provided.

Pixel data values of 0 are treated as transparent, 1 is the first color in colors and so on.

The hot point x0, y0 is relative to the top left of the cursor.

Parameters:

pixels

cursor bitmap data

pitch

width of pixel data rows in bytes

width

width of cursor in pixels

height

height of cursor in pixels

x0

hot point of cursor x coordinate

y0

hot point of cursor y coordinate

colors

color table for pixel data

Returns:

the new cursor or null if creating the cursor failed.