PHP » GoLang |
login |
register |
about
|
GoLang imagecolorresolvealpha
request it (319)
GoLang replacement for PHP's imagecolorresolvealpha
[edit | history]
imagecolorresolvealpha(PHP 4 >= 4.0.6, PHP 5, PHP 7) imagecolorresolvealpha — Get the index of the specified color + alpha or its closest possible alternative Description
int imagecolorresolvealpha
( resource
$image
, int $red
, int $green
, int $blue
, int $alpha
)This function is guaranteed to return a color index for a requested color, either the exact color or the closest possible alternative. Parameters
Return ValuesReturns a color index. ExamplesExample #1 Using imagecoloresolvealpha() to get colors from an image
<?php The above example will output something similar to: Array ( [0] => 89 [1] => 85 ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|