XAddPixel

Syntax

XAddPixel(ximage, value)
      XImage *ximage;
      long value;

Arguments

ximage Specifies the image.
value Specifies the constant value that is to be added.

Description

The XAddPixel() function adds a constant value to every pixel in an image. It is useful when you have a base pixel value from allocating color resources and need to manipulate the image to that form.

See also

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