Vcl.ImgList.TCustomImageList.ColorDepth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ColorDepth: TColorDepth read FColorDepth write SetColorDepth default cdDeviceDependent;

C++

__property TColorDepth ColorDepth = {read=FColorDepth, write=SetColorDepth, default=1};

Properties

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

Description

Color depth of images in list.

ColorDepth is the color depth type TColorDepth of images in the list. The image list is cleared when this value changes.

If you set the ColorDepth property to cd32Bit, and the ImageList contains transparent images, you must enable Run-Time Themes so that the images blend properly when drawn on controls. In the IDE, go to Project > Options > Application.

See Also