Sets the palette to be used for the image currently being displayed, or an image to be displayed.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Edit control
object.SetImagePalette Option
Parameter | Data Type | Setting | Description |
Option | Integer (enumerated) |
0 1 |
Foreground Background |
None
Images are displayed using the foreground palette by default. When the default foreground palette is used, it is loaded into the Windows palette, which can cause other images or other color-aware objects to become distorted. Setting the SetImagePalette Option value to 1 (Background) sets the existing palette, which has already been loaded by Windows.