($largeur_image - 6) ) $size--; // Calcul de la hauteur d'une ligne de texte $array = imagettfbbox ($size, 0, "./vera.ttf", $string ); $height = $array[3] - $array[5]; if ($height < 0) $height = -$height ; // Création de la ligne de texte $x = $largeur_moitie_image - (get_width ( $string, $size ) / 2); //$y = $height + $hauteur_moitie_image; $y = ($hauteur_image - $height) / 2 + $height - 5; imagettftext ($img_bottom, $size, 0, $x, $y, $color, "./vera.ttf", $string); // Génération de l'image imagepng($img_bottom,NULL,0); // Suppression des images en mémoire imagedestroy($img_bottom); imagedestroy($img_top); imagedestroy($img_bar); imagedestroy($img_arrow); ?>