 |
|
ขอคำแนะด้วยครับ FONT ภาษาไทยเพี้ยน และขนาดตัวอักษรเล็กเกินไป จะต้องแก้อย่างไรครับ

โค๊ตที่ใช้ครับ
Code
<?php
/*
image.php
*/
header("Content-type: image/jpeg");
$imgPath = 'bp_temp.jpg';
$image = imagecreatefromjpeg($imgPath);
$color = imagecolorallocate($image, 255, 140, 0);
$string = "สวัสดี";
$fontSize = 90;
$x = 115;
$y = 185;
$string2 = "นนทบุรี";
$fontSize2 = 30;
$x2 = 50;
$y2 = 70;
imagestring($image, $fontSize, $x, $y, $string, $color);
imagestring($image, $fontSize2, $x2, $y2, $string2, $color);
imagejpeg($image,"mail/image888.jpg");
imagejpeg($image);
?>
Tag : PHP, MySQL
|
|
 |
 |
 |
 |
Date :
2019-09-17 08:26:57 |
By :
sranuwat |
View :
845 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |