Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Draw Fill Rectangle

Sun Oct 26, 2008 11:00 pm

Code:

<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>




Post a reply
  Related Posts  to : Draw Fill Rectangle
 Draw rectangle on image     -  
 Draw Oval,Arc,Polygon,string,Line,Round and 3D Rectangle     -  
 Fill in a shape     -  
 Fill DataGrid In Connected Mode     -  
 fill selection options from list     -  
 How to fill a ComboBox with data from a database in jsp     -  
 Ellipse in Rectangle     -  
 How to Calculate Volume of a Rectangle     -  
 Java Rectangle Class     -  
 Drawing rectangle using stars in java     -  

Topic Tags

PHP Graphics