PaletteFlags property (LEADDlgColor Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT32 PaletteFlags

Delphi Syntax

PaletteFlags: L_UINT32

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Gets or sets the palette option, or color order, in the Color Resolution dialog box. Possible values are:

Value

Meaning

CRF_BYTEORDERRGB

[$00] Use RGB color. This flag is only valid for 16 or more-bit images.

CRF_FIXEDPALETTE

[$01] Use the fixed palette.

CRF_OPTIMIZEDPALETTE

[$02] Create an optimized palette. Or, if you supply a palette in UserPaletteColors property, supply optimized colors for specified entries in the palette.

CRF_BYTEORDERBGR

[$04] Use BGR color order. This flag only has meaning when going to 16 bits per pixel or higher.

CRF_IDENTITYPALETTE

[$08] Insert the Windows system palette.

CRF_NETSCAPEPALETTE

[$40] Use the fixed palette that is employed by Netscape Navigator and by Microsoft Internet Explorer.

CRF_USERHPALETTE

[$0100] Use the palette specified in the UserPaletteColors property.

See Also

Elements:

ShowColorResDlg method, BitsPerPixel property, DitherFlags property, DlgFlagsEx property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events