ң

imagecolorallocate

(PHP 3, PHP 4)

imagecolorallocate - .

int imagecolorallocate (resource image, int red, int green, int blue)

imagecolorallocate() , , RGB-. im imagecreate() .
red
, green blue , ̣ . 0 255. imagecolorallocate() , image .

$white = imagecolorallocate ($im, 255, 255, 255); $black = imagecolorallocate ($im, 0, 0, 0);

-1, .


ң
imagecharup imagecolorat