Function SaveBMP(img, file$)

Save an image to a *.bmp file

title$ = "Sprite Test" 
w = 640 
h = 480 
fullscreen = FALSE 
vsync = FALSE 
  
OpenWindow( title$, w, h, fullscreen, vsync ) 
  
my_canvas = OpenCanvas(w, h, 00, w, h, 1) 
  
Canvas(my_canvas) 
  
SetColor(RGB(255,0, 0)) 
CircleFill(505025) 
  
SetColor(RGB(02550)) 
CircleFill(5905025) 
  
SetColor(RGB(00255)) 
CircleFill(59043025) 
  
img = CanvasClip(00640480) 
SaveBMP(img, "test.bmp") 
  
Update() 
WaitKey()