PHP » GoLang |
login |
register |
about
|
GoLang imagecolorresolve
request it (289)
GoLang replacement for PHP's imagecolorresolve
[edit | history]
imagecolorresolve(PHP 4, PHP 5, PHP 7) imagecolorresolve — Get the index of the specified color or its closest possible alternative Description
int imagecolorresolve
( resource
$image
, int $red
, int $green
, int $blue
)This function is guaranteed to return a color index for a requested color, either the exact color or the closest possible alternative. If you created the image from a file, only colors used in the image are resolved. Colors present only in the palette are not resolved. Parameters
Return ValuesReturns a color index. ExamplesExample #1 Using imagecoloresolve() to get colors from an image
<?php The above example will output something similar to: Array ( [0] => 89 [1] => 85 ) |
more
Recently updated
more
Most requested
more
Last requests
|