Rapide Advanced Adulte
   imagefill   
Resultatsimagefill   |   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
 
   

  imagefill  


imagefill

(PHP 3, PHP 4, PHP 5)

imagefill -- Remplissage

Description

bool imagefill ( resource image, int x, int y, int color )

Effectue un remplissage avec la couleur color, dans l'image image, à partir du point de coordonnées (x, y) (le coin supérieur gauche est l'origine (0,0)).

Liste de paramètres

image

Une ressource d'image, retourné par une des fonctions de création d'images, comme imagecreatetruecolor().

x

X : coordonnée du point de départ

y

Y : coordonnée du point de départ

color

La couleur de remplissage. 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 imagefill()

<?php

$im
= imagecreatetruecolor(100, 100);

// Fixe le fond rouge
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);

header('Content-type: image/png');
imagepng($im);
imagedestroy($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