MImgSetPaletteColor

Functions ››
Parent Previous Next

bOk = MImgSetPaletteColor( hImage, nIndex, nColor )

Sets the color of an image's palette entry.

Parameters
hImage
Number: Handle of the image

nIndex
Number: The index of the palette entry. The first entry is 0.

nColor
Number: The new color

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example we set the color of the first palette entry to COLOR_Green:

Call MImgSetPaletteColor( hImage, 0, COLOR_Green )

Remarks
24Bpp images doesn't have a palette.

See also
MImgGetPaletteColor

Created with the Personal Edition of HelpNDoc: Free help authoring environment