Mega Code Archive

 
Categories / Php / Graphics
 

Create Color for paint

<html> <body> <?php   $img=ImageCreate(200,200);                                              $bgcolor=ImageColorAllocate($img,200,200,200);   $pixelcolor=ImagecolorAllocate($img,255,0,0);                                             ImageSetPixel($img,50,50,$pixelcolor);   ImagePNG($img,"pic.png");   ImageDestroy($img); ?> <img src="pic.png" border=0> </body> </html>