Recherche sur les Noms des fonctions php/mysql
Définition
Dessine une chaîne horizontale - (PHP 4, PHP 5)Dessine une chaîne aux coordonnées spécifiées.
- image
-
Une ressource d'image, retourné par une des fonctions de création d'images, comme imagecreatetruecolor().
- font
-
Peut être 1, 2, 3, 4, 5 pour les polices internes d'encodage Latin2 (où les plus grands nombres correspondent aux polices larges) ou n'importe quels identifiants de police de votre choix, enregistrées avec la fonction imageloadfont().
- x
-
X : coordonnée du coin en haut, à gauche
- y
-
Y : coordonnée du coin en haut, à gauche
- string
-
La chaîne de caractères à écrire
- color
-
Un identifiant de couleur créé par la fonction imagecolorallocate()
Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.
Exemple #1 Exemple avec imagestring()
<?php
// Nouvelle image 100*30
$im = imagecreate(100, 30);
// Fond blanc et texte bleu
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
// Ajout de la phrase en haut à gauche
imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
// Affichage de l'image
header("Content-type: image/png");
imagepng($im);
?>
L'exemple ci-dessus va afficher quelque chose de similaire à :
Bouts de code utilisant la fonction imagestring()
Connexion
Les fonctions
Références
- gd_info
- getimagesize
- image_type_to_extension...
- 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...
- imageconvolution
- imagecopy
- imagecopymerge
- imagecopymergegray
- imagecopyresampled
- imagecopyresized
- imagecreate
- imagecreatefromgd2
- imagecreatefromgd2part...
- imagecreatefromgd
- imagecreatefromgif
- imagecreatefromjpeg...
- imagecreatefrompng
- imagecreatefromstring...
- imagecreatefromwbmp...
- imagecreatefromxbm
- imagecreatefromxpm
- imagecreatetruecolor...
- imagedashedline
- imagedestroy
- imageellipse
- imagefill
- imagefilledarc
- imagefilledellipse
- imagefilledpolygon
- imagefilledrectangle...
- imagefilltoborder
- imagefilter
- imagefontheight
- imagefontwidth
- imageftbbox
- imagefttext
- imagegammacorrect
- imagegd2
- imagegd
- imagegif
- imagegrabscreen
- imagegrabwindow
- imageinterlace
- imageistruecolor
- imagejpeg
- imagelayereffect
- imageline
- imageloadfont
- imagepalettecopy
- imagepng
- imagepolygon
- imagepsbbox
- imagepsencodefont
- imagepsextendfont
- imagepsfreefont
- imagepsloadfont
- imagepsslantfont
- imagepstext
- imagerectangle
- imagerotate
- imagesavealpha
- imagesetbrush
- imagesetpixel
- imagesetstyle
- imagesetthickness
- imagesettile
- imagestring
- imagestringup
- imagesx
- imagesy
- imagetruecolortopalette...
- imagettfbbox
- imagettftext
- imagetypes
- imagewbmp
- imagexbm
- iptcembed
- iptcparse
- jpeg2wbmp
- png2wbmp





