 |
|
|
 |
 |
|
ขอดูโค้ดหน่อยได้ใหมครับ
|
 |
 |
 |
 |
Date :
11 เม.ย. 2551 20:44:25 |
By :
SpyBNC |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?php
$font = "CaflischScriptPro-Regular.otf";
$image = imagecreate(100,30);
$bg = imagecolorallocate($image,100,220,220);
$black = imagecolorallocate($image, 0, 0, 0);
imagettftext($image,28,0,2,25,$black,$font,$str);
header("Content-type:image/png");
imagepng($image);
imagedestroy($image);
?>
|
 |
 |
 |
 |
Date :
11 เม.ย. 2551 20:58:24 |
By :
ยิ้ม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่มบรรทัดสีแดงเข้าไปคับ เจอปัญหานี้เช่นเดียวกัน แก้ได้แล้วคับ
(ถึงแม้กระทู้นี้จะนานแล้ว ก็ตอบไว้ก่อน เผื่อใครมาเซิร์สจะได้หาเจอ)
<?php
putenv('GDFONTPATH=' . realpath('.'));
$font = "CaflischScriptPro-Regular.otf";
$image = imagecreate(100,30);
$bg = imagecolorallocate($image,100,220,220);
$black = imagecolorallocate($image, 0, 0, 0);
imagettftext($image,28,0,2,25,$black,$font,$str);
header("Content-type:image/png");
imagepng($image);
imagedestroy($image);
?>
|
 |
 |
 |
 |
Date :
2010-01-12 18:55:16 |
By :
addmin |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมาก Addmin ผม Sert หาใน web ของต่างประเทศไม่พบ
แต่มาพบวิธีแก้ปัญหาที่นี่ ขอชมเชย
พ.ต.อ.ทนัย
|
 |
 |
 |
 |
Date :
2010-09-21 13:40:22 |
By :
tanai |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ หาวิธีแก้ตั้งนาน
|
 |
 |
 |
 |
Date :
2010-09-28 17:59:19 |
By :
thet210 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2011-10-10 16:16:29 |
By :
ครูมงคล อู๋สูงเนิน |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|