NumOfColors Property (ILEADRasterDlgWeb)

Visual Basic example

Visual C++ example

 

Syntax

long NumberOfColors;

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.

The NumOfColors property is associated with the PNGWebTuner and the 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