imagecolorclosesthwb
Get the index of the color which has the hue, white and blackness
Beschreibung
int imagecolorclosesthwb
( resource $image
, int $red
, int $green
, int $blue
)
Parameter-Liste
-
image
-
Eine von den verschiedenen Erzeugungsfunktionen wie
imagecreatetruecolor gelieferte
Grafikressource.
-
red
-
Wert der Rotkomponente.
-
green
-
Wert der Grünkomponente.
-
blue
-
Wert der Blaukomponente.
Rückgabewerte
Returns an integer with the index of the color which has
the hue, white and blackness nearest the given color.
Beispiele
Beispiel #1 Example of using imagecolorclosesthwb
<?php
$im = imagecreatefromgif('php.gif');
echo 'HWB: ' . imagecolorclosesthwb($im, 116, 115, 152);
imagedestroy($im);
?>
Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie: