| |
| * Link führt ins Internet |
|

| |
Befehl | Version | Beschreibung | Beispiel | Ausgabe |
Befehl
| array imagecolorsforindex ( resource $im, int $index ) |
Version
Beschreibung
Beispiel
<?PHP
$image = imagecreate ( 300, 150 );
$farbe_body=imagecolorallocate ( $image, 243, 243, 243 );
$farbe_b = imagecolorallocate ( $image, 10, 36, 106 );
$rgb = imagecolorsforindex ( $image, $farbe_b );
echo 'RGB-Wert für rot: ' . $rgb[red] . '<br>';
echo 'RGB-Wert für grün: ' . $rgb[green] . '<br>';
echo 'RGB-Wert für blau: ' . $rgb[blue];
?>
|
Ausgabe
RGB-Wert für rot: 10
RGB-Wert für grün: 36
RGB-Wert für blau: 106 |
|
|
|
|
|
|


|