Recherche sur les Noms des fonctions php/mysql
Définition
Dessine un caractère horizontalement - (PHP 4, PHP 5)imagechar() dessine le premier caractère de la chaîne c dans l'image image avec le coin supérieur gauche placé à la position x ,y (le coin en haut à gauche est l'origine (0,0)) avec la couleur color .
- 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 de départ
- y
-
Y : coordonnée de départ
- c
-
Le caractère à dessiner
- 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 imagechar()
<?php
$im = imagecreate(100, 100);
$string = 'PHP';
$bg = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
// affiche un "P" noir dans le coin gauche en haut
imagechar($im, 1, 0, 0, $string, $black);
header('Content-type: image/png');
imagepng($im);
?>
L'exemple ci-dessus va afficher quelque chose de similaire à :
Bout de code utilisant la fonction imagechar()
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





