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 xnumber position to draw to. ynumber position to draw to.