Rapide Advanced Adulte
   imagestring   
Resultatsimagestring   |   Contact

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.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
.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
 
   

  imagestring  


imagestring

(PHP 3, PHP 4, PHP 5)

imagestring -- Dessine une chaîne horizontale

Description

bool imagestring ( resource image, int font, int x, int y, string sring, int color )

Dessine une chaîne aux coordonnées spécifiées.

Liste de paramètres

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 (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

sring

La chaîne de caractères à écrire

color

Un identifiant de couleur créé par la fonction imagecolorallocate()

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

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 à :


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur