Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WICBitmapPaletteType enumeration

Specifies the type of palette used for an indexed image format.

Syntax


typedef enum WICBitmapPaletteType { 
  WICBitmapPaletteTypeCustom            = 0x00000000,
  WICBitmapPaletteTypeMedianCut         = 0x00000001,
  WICBitmapPaletteTypeFixedBW           = 0x00000002,
  WICBitmapPaletteTypeFixedHalftone8    = 0x00000003,
  WICBitmapPaletteTypeFixedHalftone27   = 0x00000004,
  WICBitmapPaletteTypeFixedHalftone64   = 0x00000005,
  WICBitmapPaletteTypeFixedHalftone125  = 0x00000006,
  WICBitmapPaletteTypeFixedHalftone216  = 0x00000007,
  WICBitmapPaletteTypeFixedWebPalette   = WICBitmapPaletteTypeFixedHalftone216,
  WICBitmapPaletteTypeFixedHalftone252  = 0x00000008,
  WICBitmapPaletteTypeFixedHalftone256  = 0x00000009,
  WICBitmapPaletteTypeFixedGray4        = 0x0000000A,
  WICBitmapPaletteTypeFixedGray16       = 0x0000000B,
  WICBitmapPaletteTypeFixedGray256      = 0x0000000C
} WICBitmapPaletteType;

Constants

WICBitmapPaletteTypeCustom

An arbitrary custom palette provided by caller.

WICBitmapPaletteTypeMedianCut

An optimal palette generated using a median-cut algorithm. Derived from the colors in an image.

WICBitmapPaletteTypeFixedBW

A black and white palette.

WICBitmapPaletteTypeFixedHalftone8

A palette that has its 8-color on-off primaries and the 16 system colors added. With duplicates removed, 16 colors are available.

WICBitmapPaletteTypeFixedHalftone27

A palette that has 3 intensity levels of each primary: 27-color on-off primaries and the 16 system colors added. With duplicates removed, 35 colors are available.

WICBitmapPaletteTypeFixedHalftone64

A palette that has 4 intensity levels of each primary: 64-color on-off primaries and the 16 system colors added. With duplicates removed, 72 colors are available.

WICBitmapPaletteTypeFixedHalftone125

A palette that has 5 intensity levels of each primary: 125-color on-off primaries and the 16 system colors added. With duplicates removed, 133 colors are available.

WICBitmapPaletteTypeFixedHalftone216

A palette that has 6 intensity levels of each primary: 216-color on-off primaries and the 16 system colors added. With duplicates removed, 224 colors are available. This is the same as WICBitmapPaletteFixedHalftoneWeb.

WICBitmapPaletteTypeFixedWebPalette

A palette that has 6 intensity levels of each primary: 216-color on-off primaries and the 16 system colors added. With duplicates removed, 224 colors are available. This is the same as WICBitmapPaletteTypeFixedHalftone216.

WICBitmapPaletteTypeFixedHalftone252

A palette that has its 252-color on-off primaries and the 16 system colors added. With duplicates removed, 256 colors are available.

WICBitmapPaletteTypeFixedHalftone256

A palette that has its 256-color on-off primaries and the 16 system colors added. With duplicates removed, 256 colors are available.

WICBitmapPaletteTypeFixedGray4

A palette that has 4 shades of gray.

WICBitmapPaletteTypeFixedGray16

A palette that has 16 shades of gray.

WICBitmapPaletteTypeFixedGray256

A palette that has 256 shades of gray.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

 

 

Show:
© 2017 Microsoft