Create Color for paint : Image Color : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Image Color »

 

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>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Image Color