PHP » GoLang |
login |
register |
about
|
GoLang imagecolorstotal
request it (240)
GoLang replacement for PHP's imagecolorstotal
[edit | history]
imagecolorstotal(PHP 4, PHP 5, PHP 7) imagecolorstotal — Find out the number of colors in an image's palette Description
int imagecolorstotal
( resource
$image
)Returns the number of colors in an image palette. Parameters
Return ValuesReturns the number of colors in the specified image's palette or 0 for truecolor images. Examples
Example #1 Getting total number of colors in an image using imagecolorstotal()
<?php The above example will output something similar to: Total colors in image: 128 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|