Graphics 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);
?>