[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.BkColor

Specifies the background color used for transparent parts of images.

Declaration

Source position: imglist.pp line 402

public property TCustomImageList.BkColor : TColor
  read FBkColor
  write SetBkColor
  default clNone;

Description

BkColor is a TColor property that specifies the background color used for transparent parts of images in the image list. The default value for the property is clNone. Changing the value in BkColor causes the internal Changed flag to be set, and the Change method is called to perform change notifications.

BkColor is intended to speed up drawing of transparent images using a background of known color (BkColor). In this case the image can be drawn opaque, eliminating the need for masking out and merging image data.

The value in BkColor is used in TCustomImageListResolution methods like Draw and DrawOverlay.

See also

TCustomImageList.Change

  

Sends change notifications when the image list is updated.

TCustomImageListResolution.Draw

  

Renders an image to the specified canvas.

TCustomImageListResolution.DrawOverlay

  

Draws the specified image with the given overlay.


Version 3.2 Generated 2024-02-25 Home