10-06-2009, 15:25
|
|
|
חבר מתאריך: 21.01.09
הודעות: 67
|
|
עברית בGD, אני פשוט משתגע מזה!
אהלן,
כבר כמה ימים שאני מנסה לגרום לתמונה שעשיתי בעזרת GD להפוך לעברית, אבל ללא הצלחה, חשבתי שאולי אתם תצליחו לעשות את זה איכשהו, להלן הקוד:
קוד PHP:
<?php //code were created by Or Gozlanovisoski and all right reserved header("Content-type: image/png; charset=utf-8");
$bg = (int)$_GET['background']; if ($bg < 0 || $bg > 3) { $bg = 1; }
$image = imagecreatefrompng('images/dynsigbg' . $bg . '.png');
//imagecolorallocate($image, R, G, B) in HEX values $font_black = imagecolorallocate($image, 2, 1, 8); $font_white = imagecolorallocate($image, 255, 255, 255); $font_blue = imagecolorallocate($image, 25, 0, 255);
$text = htmlspecialchars($_GET["comment"]);
//($image, fontsize, rightindent, downindent, data, txtcolour) imagestring($image, 3, 4, 65, "www.eugenia-suarez.com", $font_white); imagestring($image, 3, 350, 65, "created by Or Gozlan", $font_white); imagestring($image, 10, 175, 15, $text, $font_black);
imagepng($image); imagedestroy($image); ?>
בבקשה: אם יש למישהו מושג, תעזרו לי- אני כבר התחלתי להתשגע!
|