<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Canvas Control > Canvas Control Commands > Canvas_BitmapCopy3 |
Description
Copies a bitmap to the selected canvas target.
Copies a portion of the bitmap, specified by SX, SY1 as the upper left corner and SX2, SY2 as the lower right corner. It is positioned at the point specified by the parameter DX, DY
Syntax
n = Canvas_BitmapCopy3(hBmp, ID, SX1, SY1, SX2, SY2, DX, DY [, Style])
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
||||||||||||||||||||||||||||||||
hBmp |
Number |
No |
specifies the handle of the source bitmap, control, or window |
||||||||||||||||||||||||||||||||
ID |
Number |
No |
identifier assigned with the CONTROL ADD CANVAS. |
||||||||||||||||||||||||||||||||
SX1 |
Number |
No |
Source X1 |
||||||||||||||||||||||||||||||||
SY1 |
Number |
No |
Source Y1 |
||||||||||||||||||||||||||||||||
SX2 |
Number |
No |
Source X2 |
||||||||||||||||||||||||||||||||
SY2 |
Number |
No |
Source Y2 |
||||||||||||||||||||||||||||||||
DX |
Number |
No |
Destination X |
||||||||||||||||||||||||||||||||
DY |
Number |
No |
Destination Y |
||||||||||||||||||||||||||||||||
Style |
Number |
Yes |
One of the following equates:
|
Remarks
The destination of the stretch operation is always the attached graphic target
Restrictions
See also
Examples