Vcl.ImgList.TCustomImageList.ReplaceMasked

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReplaceMasked(Index: Integer; NewImage: TBitmap; MaskColor: TColor);

C++

void __fastcall ReplaceMasked(int Index, Vcl::Graphics::TBitmap* NewImage, System::Uitypes::TColor MaskColor);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Description

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

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.

See Also