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 blacknessSYNOPSISint imagecolorclosesthwb (resource $image, int $red, int $green, int $blue)DESCRIPTIONGet the index of the color which has the hue, white and blackness nearest the given color.PARAMETERSo $ 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 VALUESReturns an integer with the index of the color which has the hue, white and blackness nearest the given color.EXAMPLESExample #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: 33CHANGELOG+--------+--------------------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------------------+ | 5.3.0 | | | | | | | This function is now available on Windows | | | | +--------+--------------------------------------------+SEE ALSOimagecolorclosest(3). PHP Documentation Group IMAGECOLORCLOSESTHWB(3)
Related Man Pages |
---|
imagecolortransparent(3) - php |
imagecolorexact(3) - php |
imagecolorresolve(3) - php |
imagecolorresolvealpha(3) - php |
imagefill(3) - php |
Similar Topics in the Unix Linux Community |
---|
Comma Seperated List of Values |
Help with color combinations |