Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5203613
Hits Heute: 270
max. Hits (10.07.07): 6964
User Online: 23
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

Die XML Bibel
Die XML Bibel

Manuals > PHP > imagecolorallocate

imagecolorallocate

(PHP 3, PHP 4 )

imagecolorallocate -- Bestimmt die Farbe einer Grafik

Beschreibung:

int imagecolorallocate ( int im, int red, int green, int blue)

ImageColorAllocate() gibt eine Farb-ID, die durch die angegebenen RGB-Werte bestimmt wird, zurück. Der Parameter im wird ihnen von der imagecreate()-Funktion zurück gegeben. ImageColorAllocate() muss für jede Farbe aufgerufen werden, die innerhalb der Grafik im verwendet werden soll.

$weiss   = ImageColorAllocate ($im, 255, 255, 255);
$schwarz = ImageColorAllocate ($im, 0, 0, 0);


Copyright 1998 - 2009 by I.S.U.M.