graphics.bitmap()
graphics.bitmap(path)
graphics.bitmap(width, height)
This function creates a Bitmap object.
There are two methods to generate a Bitmap object, one by loading the bitmap file specified in the path parameter, and the other by generating a transparent bitmap of the size specified in width and height.
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Path of the bitmap file. |
width | number | Width of the bitmap |
height | number | Width of the bitmap |
Return Values
This function returns a Bitmap object.