RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.ReplaceMasked Method

Replaces an image in the image list with a new image and automatically-generated mask.

Pascal
procedure ReplaceMasked(Index: Integer; NewImage: TBitmap; MaskColor: TColor);
C++
__fastcall ReplaceMasked(int Index, TBitmap NewImage, TColor MaskColor);

Use the ReplaceMasked method to replace the image at Index position within the image list specified by NewImage and the mask generated from NewImage by masking out all pixels of the color specified by MaskColor. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!