Muokkaa

Jaa


PaletteType Enum

Definition

Specifies color palette types.

public enum class PaletteType
public enum PaletteType
type PaletteType = 
Public Enum PaletteType
Inheritance
PaletteType

Fields

Name Value Description
Custom 0

An arbitrary custom palette specified by the caller.

FixedBlackAndWhite 2

A palette that has two colors. This palette type is suitable for bitmaps that store 1 bit per pixel.

FixedHalftone8 3

A palette based on two intensities each (off or full) for the red, green, and blue channels. Also contains the

16 colors of the system palette. Because all eight of the on/off combinations of red, green, and blue are

already in the system palette, this palette is the same as the system palette. This palette type is suitable

for bitmaps that store 4 bits per pixel.

FixedHalftone27 4

A palette based on three intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 27 three-intensity combinations of red, green, and blue, so the total number of colors in the palette is 35. If the palette also includes the transparent color, the total number of colors is 36.

FixedHalftone64 5

A palette based on four intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 64 four-intensity combinations of red, green, and blue, so the total number of colors in the palette is 72. If the palette also includes the transparent color, the total number of colors is 73.

FixedHalftone125 6

A palette based on five intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 125 five-intensity combinations of red, green, and blue, so the total number of colors in the palette is 133. If the palette also includes the transparent color, the total number of colors is 134.

FixedHalftone216 7

A palette based on six intensities each for the red, green, and blue channels. Also contains the 16 colors of the system palette. Eight of the 16 system palette colors are among the 216 six-intensity combinations of red, green, and blue, so the total number of colors in the palette is 224. If the palette also includes the transparent color, the total number of colors is 225. This palette is sometimes called the Windows halftone palette or the Web palette.

FixedHalftone252 8

A palette based on 6 intensities of red, 7 intensities of green, and 6 intensities of blue. The system palette is not included. The total number of colors is 252. If the palette also includes the transparent color, the total number of colors is 253.

FixedHalftone256 9

A palette based on 8 intensities of red, 8 intensities of green, and 4 intensities of blue. The system palette is not included. The total number of colors is 256. If the transparent color is included in this palette, it must replace one of the RGB combinations.

Applies to