  | 
              
	              
	                
  
    
	 
        การสร้างรูปภาพด้วย PHP !!!!! จะใส่ข้อความลงในรูปภาพครับโดยใช้  header("Content-type: image/jpeg"); $string = "Narak Narak";     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 Code (PHP) 
<?
echo "<img src=MyResize/image.png>";
$images = ImageCreate(300,200);
$color = ImageColorAllocate($images,255,0,0);
$photo = ImageColorAllocate($images,0,0,0);
ImageRectangle($images, 0, 0, 299, 199, $photo);
ImageString($images, 5, 10, 20, "www.ThaiCreate.Com Version 2009", $photo);
ImageString($images, 5, 10, 40, "Community By @W_IN", $photo);
ImageStringUp($images, 5, 10, 190, "My Name is Win", $photo);
ImagePng($images,"MyResize/image.png");
ImageDestroy($images);
?>
  
 
Go to : PHP Create text in image                        
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-04 22:07:51 | 
                        By :
                            thaicreate | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |