NumOfColors property (LEADDlgWeb Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT NumOfColors

Delphi Syntax

NumOfColors: L_UINT

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Gets or sets the maximum number of colors that the image can have.

When the BitsPerPixel property is 8 or less the image will use indexed colors.

This property is associated with PNGWebTuner and GIFWebTuner dialog boxes:

Possible values range from 2 to 256. Indexed PNG or GIF images can have from 2 colors to 256 colors.

Using fewer colors results in smaller files, but also reduces the quality of the image.

See Also

Elements:

ShowPNGWebTunerDlg method, ShowGIFWebTunerDlg method.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events