TCnImageList.ColorDepth Property

Gets the color depth of the image list.

Namespace: CNClrLib.Component.ImageList
published
 property ColorDepth: TColorDepth read GetColorDepth write SetColorDepth default TColorDepth.cdDepth8Bit;

Property Value

The number of available colors for the image. The default is Depth8Bit.

When you set the color depth to a new value, the Handle for the image list is recreated. Because setting the ColorDepth property causes the handle to be recreated, you should set ColorDepth prior to setting the Images property.