Set the Color Palette of the Displayed Image
When the image has a bit depth of 8 bits or less, the image's palette is realized by the display device. In other words, the image's palette combines with the display device's logical palette and is used to display the image. You can specify a different display behavior by setting the Palette property.
If Palette is set to:
- UserDefined - then use the PRGBGetColors and PRGBSetColors methods to define and access a user-defined palette.
- PalFile - then use the PFilename to set and get the source for the palette.
- Gray - then a fixed gray palette is used.
- Fixed - then an ImagXpress® internally defined palette is used.
- Optimized - then the image is analyzed and the best palette is used.
Setting the PaletteType property does not change the palette stored with the image, but does change the palette realized by the display device. |