Navigation:  ThinBASIC Modules > UI (User Interface) > Additional Controls and Functions > Canvas Control >

Canvas_BitmapNew

Previous pageReturn to chapter overviewNext page

 

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