RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBitmap.Mask Method

Converts the current bitmap image into a monochrome mask, replacing TransparentColor with white and every other color with black.

Pascal
procedure Mask(TransparentColor: TColor);
C++
__fastcall Mask(TColor TransparentColor);

Use Mask to produce a monochrome mask bitmap based on a given transparent color. Mask produces the same image that MaskHandle does, except that the resulting mask image replaces the image in the TBitmap object, so it only makes sense to call Mask once. Use MaskHandle when only a bitmap handle of the mask image is needed. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!