<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands > Canvas_BitmapNew |
Description
Create a new memory bitmap.
Syntax
hBmp = Canvas_BitmapNew(width, height)
Returns
Number
If the bitmap creation is successful, the bitmap handle is assigned to the variable hBmp.
If not successful, hBmp is set to zero.
Parameters
Name |
Type |
Optional |
Meaning |
Width |
Number |
No |
Bitmap width |
Height |
Number |
No |
Bitmap height |
Remarks
Creates a new memory bitmap, which may be manipulated and drawn just as if it were a Canvas Window, except that it is not visible
Restrictions
When you are finished using this memory bitmap, you must delete it with Canvas_BitmapEnd.
See also
Examples