PaletteFlags property (Thumbnail Browser Control)

C++ Builder example

Delphi example

 

Builder Syntax

int PaletteFlags

Delphi Syntax

PaletteFlags : longInt

Overview

Refer to Thumbnail Browser.

Remarks

(Runtime-only)Indicates the palette option or color order that should be used when both ForceSize and MaintainAspect are True and the source image is not 24-bit. In this case, the thumbnail image is converted to 24-bit, then, combined with a "background" bitmap. Then, the resulting bitmap is returned to the thumbnail image's original bit-depth using this setting.

Possible values are:

Setting

Description

CRF_FIXEDPALETTE

Use the LEAD fixed palette.

CRF_NETSCAPEPALETTE

Use the fixed palette that is employed by Netscape Navigator and by Microsoft Internet Explorer.

CRF_OPTIMIZEDPALETTE

Create an optimized palette.

CRF_IDENTITYPALETTE

Insert the Windows system palette, and optimize the remaining colors.

CRF_USERPALETTE

Use the palette specified in the UserPalette property.

CRF_BYTEORDERBGR

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

CRF_BYTEORDERRGB

Use RGB color order. This flag only has meaning when going to 16 bits per pixel or higher.

CRF_BYTEORDERGRAY

Use grayscale. This flag is only valid for 12 or 16-bit grayscale images. 12 and 16-bit grayscale images are supported in the Document/Medical toolkits only.

See Also

Elements:

BrowseDir method, DitherFlags property, InfoBits property, ThumbnailBitsPerPixel property, ForceSize property, MaintainAspect property, ColorRes method (Main Control)

Topics:

Raster Images: Displaying Images