Bitmap(filename)

new Bitmap(filename)

Load a BMP or PNG image.
Parameters:
Name Type Description
filename string name of the BMP or PNG file.

Members

static filename

Name of the file.

static height

Height in pixels

static width

Width in pixels

Methods

Draw(x, y)

Draw the image to the canvas at given coordinates.
Parameters:
Name Type Description
x number position to draw to.
y number position to draw to.