|
imagecolorallocatealphaAllocate a color for an image Description
intfalse imagecolorallocatealpha(
GdImage $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
ExamplesExample #1 Example of using imagecolorallocatealpha The above example will output something similar to:
Example #2 Convert typical alpha values for use with imagecolorallocatealpha
Usually alpha values of The above example will output: int(127) int(0) See Also
|