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

Canvas_BitmapCopy1

Previous pageReturn to chapter overviewNext page

 

Description

 

Copies a bitmap to the selected canvas target.

Copies the complete bitmap, positioning it at the upper left corner of the destination

 

Syntax

 

n = Canvas_BitmapCopy2(hBmp, ID [, 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.
ID must be zero (0) for a Canvas Window or a Bitmap.

Style

Number

Yes

One of the following equates:

%Canvas_mix_BlacknessPixel is always 0 (black).
%Canvas_mix_NotMergeSrcPixel is the inverse of the MergeSrc color.
%Canvas_mix_MaskNotSrcPixel is a combination of the colors common to both the pixel and the inverse of the source.
%Canvas_mix_NotCopySrcPixel is the inverse of the pen color.
%Canvas_mix_MaskSrcNotPixel is a combination of the colors common to both the source and the inverse of the pixel.
%Canvas_mix_NotPixel is the inverse of the pixel color.
%Canvas_mix_XorSrcPixel is a combination of the colors in the source and in the pixel, but not in both.
%Canvas_mix_NotMaskSrcPixel is the inverse of the MaskSrc color.
%Canvas_mix_MaskSrcPixel is a combination of the colors common to both the source and the pixel.
%Canvas_mix_NotXorSrcPixel is the inverse of the XorSrc color.
%Canvas_mix_NopPixel remains unchanged.
%Canvas_mix_MergeNotSrcPixel is a combination of the source color and the inverse of the pixel color.
%Canvas_mix_CopySrcPixel is the source color (default).
%Canvas_mix_MergeSrcNotPixel is a combination of the source color and the inverse of the pixel color.
%Canvas_mix_MergeSrcPixel is a combination of the source color and the pixel color.
%Canvas_mix_WhitenessPixel is always 1 (white)

 

Remarks

 

The destination of the stretch operation is always the attached graphic target

 

Restrictions

 

See also

 

Examples