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

Canvas_SetMix

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the color mix mode for the selected canvas target.

 

Syntax

 

n = Canvas_SetMix(MixMode)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

MixMode

Number

No

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

 

Restrictions

 

See also

 

Examples