ColorCount property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ColorCount

Delphi Syntax

ColorCount:Integer

Overview

Refer to Examining and Altering Bitmaps

Remarks

(Read Only) Returns the number of unique colors in the current bitmap.

This method supports 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.

This property supports signed data images.

See Also

Elements:

BitmapBits property, BitmapHeight property, BitmapWidth property, BitmapXRes property, BitmapYRes property

Topics:

Raster Images: Getting Current Information