Services webmasters
Partenaires
Jeux concours gratuits
 
imagetruecolortopalette
<<<
imagettfbbox imagettftext
>>>

7.40 Images
7 Index des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Types de ressources
Constantes prédefinies
Exemples
exif_imagetype
exif_read_data
exif_thumbnail
gd_info
getimagesize
image_type_to_mime_type
image2wbmp
imagealphablending
imageantialias
imagearc
imagechar
imagecharup
imagecolorallocate
imagecolorallocatealpha
imagecolorat
imagecolorclosest
imagecolorclosestalpha
imagecolorclosesthwb
imagecolordeallocate
imagecolorexact
imagecolorexactalpha
imagecolormatch
imagecolorresolve
imagecolorresolvealpha
imagecolorset
imagecolorsforindex
imagecolorstotal
imagecolortransparent
imagecopy
imagecopymerge
imagecopymergegray
imagecopyresampled
imagecopyresized
imagecreate
imagecreatefromgd
imagecreatefromgd2
imagecreatefromgd2part
imagecreatefromgif
imagecreatefromjpeg
imagecreatefrompng
imagecreatefromstring
imagecreatefromwbmp
imagecreatefromxbm
imagecreatefromxpm
imagecreatetruecolor
imagedashedline
imagedestroy
imageellipse
imagefill
imagefilledarc
imagefilledellipse
.&nbs HREF="function.imagegammacorrect.php">imagegammacorrect
imagegd
imagegd2
imagegif
imageinterlace
imageistruecolor
imagejpeg
imageline
imageloadfont
imagepalettecopy
imagepng
imagepolygon
imagepsbbox
imagepscopyfont
imagepsencodefont
imagepsextendfont
imagepsfreefont
imagepsloadfont
imagepsslantfont
imagepstext
imagerectangle
imagerotate
imagesavealpha
imagesetbrush
imagesetpixel
imagesetstyle
imagesetthickness
imagesettile
imagestring
imagestringup
imagesx
imagesy
imagetruecolortopalette
->imagettfbbox
imagettftext
imagetypes
imagewbmp
iptcembed
iptcparse
jpeg2wbmp
png2wbmp
read_exif_data

7.40.99 imagettfbbox() Retourne le rectangle entourant un texte et dessiné avec une police TrueType.

[ Exemples avec imagettfbbox ]   PHP 3>= 3.0.1, PHP 4

array  imagettfbbox ( int   size , int   angle , string   fontfile , string   text )

imagettfbbox calcule et retourne le rectangle entourant le texte text , écrit avec une police truetype.

    text
    La chaîne à mesurer.
    size
    La taille de la police en pixel.
    fontfile
    Le nom de la police TrueType (peut aussi être une URL.)
    angle
    Angle en degré dans lequel le texte text va être mesuré.
imagettfbbox retourne une tableau avec 8 éléments, représentant les 4 sommets du rectangle ainsi défini.
0 Coin inférieur gauche, abscisse
1 Coin inférieur gauche, ordonnée
2 Coin inférieur droit, abscisse
3 Coin inférieur droit, ordonnée
4 Coin supérieur droit, abscisse
5 Coin supérieur droit, ordonnée
6 Coin supérieur gauche, abscisse
7 Coin supérieur gauche, ordonnée
Les positions des points sont relatives au texte text , indépendamment de l'angle : coin supérieur gauche faire référence au coin supérieur gauche du texte écrit horizontalement.

imagettfbbox requiert les bibliothèques GD et Freetype.

Voir aussi imagettftext .

<< imagettfbbox >>
imagetruecolortopalette Images imagettftext
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -