1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| for ($a = 1; $a < 2; $a++)
{
$im = imagecreatefromgif("ban/".$ban.".gif");
if ($ombre == 1) {
//Ombre du texte !
$ombre1 = ImageColorAllocate($im, $rgb13, $rgb14, $rgb15);
imagettftext($im, $s, 0, $x+1, $y, $ombre1, $font1,$text);
}
$color1 = ImageColorAllocate($im, $rgb1, $rgb2, $rgb3);
imagettftext($im, $s, 0, $x, $y-1, $color1, $font1,$text);
$im2 = imagecreatefromgif("ban/".$ban.".gif");
if ($ombre == 1) {
//Ombre du texte !
$ombre2 = ImageColorAllocate($im, $rgb16, $rgb17, $rgb18);
imagettftext($im2, $s, 0, $x2+1, $y2, $ombre2, $font1,$text2);
}
$color3 = ImageColorAllocate($im2, $rgb4, $rgb5, $rgb6);
imagettftext($im2, $s, 0, $x2, $y2-1, $color3, $font1,$text2);
$im3 = imagecreatefromgif("ban/".$ban.".gif");
if ($ombre == 1) {
//Ombre du texte !
$ombre3 = ImageColorAllocate($im, $rgb19, $rgb20, $rgb21);
imagettftext($im3, $s, 0, $x3+1, $y3, $ombre3, $font1,$text3);
}
$color5 = ImageColorAllocate($im3, $rgb7, $rgb8, $rgb9);
imagettftext($im3, $s, 0, $x3, $y3-1, $color5, $font1,$text3);
$array_of_image[] = $im;
$array_of_image[] = $im2;
$array_of_image[] = $im3;
} |
Partager