Fill Rectangle : Rectangle : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Rectangle »

 

Fill Rectangle



<html>
<body>
<?php
    $pic=ImageCreate(600,600);
    $col1=ImageColorAllocate($pic,200,200,200);
    $col2=ImageColorAllocate($pic,0,0,255);

    ImageFilledRectangle($pic,1,1,100,100,$col2);
    ImagePNG($pic,"pic.png");
    ImageDestroy($pic);
?>
<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
» Rectangle