MImgGetPaletteColor

Functions ››
Parent Previous Next

nColor = MImgGetPaletteColor( hImage, nIndex )

Gets 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.

Return
Number: The palette color or MIMG_COLOR_UNDEF if an error occurs

Example
In this example we get the color of the first palette entry:

Set nColor = MImgGetPaletteColor( hImage, 0 )

Remarks
24Bpp images doesn't have a palette.

See also
MImgGetPixelColor
MImgGetUsedColors
MImgSetPaletteColor

Created with the Personal Edition of HelpNDoc: Easily create Web Help sites