imagesetpixel

(PHP 3, PHP 4 >= 4.0.0)

imagesetpixel -- Set a single pixel

Description

int imagesetpixel ( int im, int x, int y, int col)

imagesetpixel() draws a pixel at x, y (top left is 0, 0) in image im of color col.

See also imagecreate() and imagecolorallocate().