PHP » GoLang |
login |
register |
about
|
GoLang imagecolorallocatealpha
request it (413)
GoLang replacement for PHP's imagecolorallocatealpha
[edit | history]
imagecolorallocatealpha(PHP 4 >= 4.3.2, PHP 5, PHP 7) imagecolorallocatealpha — Allocate a color for an image Description
int imagecolorallocatealpha
( resource
$image
, int $red
, int $green
, int $blue
, int $alpha
)
imagecolorallocatealpha() behaves identically to
imagecolorallocate() with the addition of the transparency
parameter Parameters
red , green
and blue parameters are integers
between 0 and 255 or hexadecimals between 0x00 and 0xFF.
Return Values
A color identifier or Warning
This function may
return Boolean Changelog
Examples
Example #1 Example of using imagecolorallocatealpha()
<?php The above example will output something similar to: See Also
|
more
Recently updated
more
Most requested
more
Last requests
|