Visual Basic
C#
Managed Extensions for C++
C++/CLI
Property Value
The PaletteType enumeration value set.This property setting will only be valid if the current image is displayed using a palette.
When the Image has a bit depth of 8 bits or less, the image's palette will be realized by the display device. In other words, the image's palette is combined with the display device's logical palette and used to display the image.
You can specify a different behavior by modifying this property. Setting this property does not change the palette stored with the Image, but does change the palette that is realized by the display device.
- If the PaletteType is set to null, then use the image's palette when displaying.
- If the PaletteType is set to UserDefined, then use the GetPaletteColor and SetPaletteColor methods to define and access a user-defined palette.
- If the PaletteType is set to PalFile, then use the PaletteFilename property to get and set the source for the palette.
- If the PaletteType is set to Gray, a fixed gray palette is used.
- If the PaletteType is set to Fixed, then an ImageXView internally defined palette is used.
- If the PaletteType is set to Optimized, then the image is analyzed, and the best palette is used.