DIM Bitmap AS QBITMAP
DIM Source AS QRECT
DIM Destination AS QRECT
SUB Saveit
Bitmap.Height=Canvas.Height
Bitmap.Width=Canvas.Width
WITH Destination
.Top = 0
.Left = 0
.Right = .Left+Bitmap.Width
.Bottom = .Top+Bitmap.Height
END WITH
WITH Source
.Top = 0
.Left = 0
.Right = Canvas.Width
.Bottom = Canvas.Height
END WITH
Bitmap.CopyRect(Destination,Canvas, Source)
Bitmap.SaveToFile "whatever.bmp"
END SUB
|