This function creates a new bitmap of the specified width and height. The value returned is an object variable that contains the bitmap and can be used in other drawing commands.
Example:
Graphics On
Color 40,40,40
CLS
width = ScreenX()
height = ScreenY()
bitmap = CreateBitmap(width/4, height/4)
' Make the bitmap a green box with two diagonal lines.
SetDrawingSurface bitmap
Color 0,100,0
CLS
ex = GetBitmapWidth(bitmap) - 1
ey = GetBitmapHeight(bitmap) - 1
Color 0,0,0
Line 0,0,ex,ey
Line ex,0,0,ey
Color 100,0,0
Rect 0,0,ex,ey
SetDrawingSurface Off
DrawBitmap bitmap, width/2, height/2
Wait 10000
|