lcImageGetPixelI Home

Retrieves color of image pixel. The image must have palette colors (LC_PROP_IMAGE_RGB = false).

 BOOL lcImageGetPixelRGB (
   HANDLE hImage,
   int X,
   int Y,
   int* piColor
 );

Parameters
hImage
  Handle to a raster image object.
X
  Pixel X coordinate. The value must be less then LC_PROP_IMAGE_WPIX.
Y
  Pixel Y coordinates. The value must be less then LC_PROP_IMAGE_HPIX.
piColor
  Pointer to a variable which will receive a value of color index.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcImageSetPixelI