Sets an RGB value for a palette entry in the current DIB.
Visual Basic |
---|
Public Sub DIBSetPalIndex( _ ByVal IPPalIndex As Integer, _ ByVal OPPalColor As OLE_COLOR _ ) |
- IPPalIndex
The palette index within the image.
Valid values are greater than or equal to zero.
- OPPalColor
The RGB color value of the palette index.
Note: Value specified must be in a valid OLE_COLOR range.
The result of this method cannot be undone with the Undo method.
The following Visual Basic line of code illustrates how to use the DIBSetPalIndex method: The following Visual Basic line of code illustrates how to use the DIBSetPalIndex method.
VB example using DibSetPalIndex ( ) | Copy Code |
---|---|
ImagXpress1.DibSetPalIndex10,RGB(255,0,0) |