php man page for imagecolorclosesthwb

Query: imagecolorclosesthwb

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IMAGECOLORCLOSESTHWB(3) 						 1						   IMAGECOLORCLOSESTHWB(3)

imagecolorclosesthwb - Get the index of the color which has the hue, white and blackness

SYNOPSIS
int imagecolorclosesthwb (resource $image, int $red, int $green, int $blue)
DESCRIPTION
Get the index of the color which has the hue, white and blackness nearest the given color.
PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $red -Value of red component. o $green -Value of green component. o $blue -Value of blue component.
RETURN VALUES
Returns an integer with the index of the color which has the hue, white and blackness nearest the given color.
EXAMPLES
Example #1 Example of using imagecolorclosesthwb(3) <?php $im = imagecreatefromgif('php.gif'); echo 'HWB: ' . imagecolorclosesthwb($im, 116, 115, 152); imagedestroy($im); ?> The above example will output something similar to: HWB: 33
CHANGELOG
+--------+--------------------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows | | | | +--------+--------------------------------------------+
SEE ALSO
imagecolorclosest(3). PHP Documentation Group IMAGECOLORCLOSESTHWB(3)
Related Man Pages
imagecolorat(3) - php
imagecolorclosest(3) - php
imagecolorclosestalpha(3) - php
imagecolorexactalpha(3) - php
imagecolorresolve(3) - php
Similar Topics in the Unix Linux Community
Comma Seperated List of Values
Help with color combinations