Skip to main content

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

ParameterTypeDescription
pathstringPath of the bitmap file.
widthnumberWidth of the bitmap
heightnumberWidth of the bitmap

Return Values

This function returns a Bitmap object.

See Also