XPutPixel

Syntax

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

Arguments

ximage Specifies the image.
x
y
Specify the x and y coordinates.
pixel Specifies the new pixel value.

Description

The XPutPixel() function overwrites the pixel in the named image with the specified pixel value. The input pixel value must be 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(), XGetPixel(), XSubImage(), "Manipulating Images".
Christophe Tronche, ch@tronche.com