XGetPixel

Syntax

unsigned long XGetPixel(ximage, x, y)
      XImage *ximage;
      int x;
      int y;

Arguments

ximage Specifies the image.
x
y
Specify the x and y coordinates.

Description

The XGetPixel() function returns the specified pixel from the named image. The pixel value is returned in normalized format (that is, the least-significant byte of the long is the least-significant byte of the pixel). The image must contain the x and y coordinates.

See also

XAddPixel(), XCreateImage(), XDestroyImage(), XPutPixel(), XSubImage(), "Manipulating Images".
Christophe Tronche, ch@tronche.com