imagesavealpha()
imagesavealpha - Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images
Syntax
bool imagesavealpha (
resource $image,
bool $saveflag)
Arguments
- image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
- saveflag - Whether to save the alpha channel or not. Default to FALSE.
Description
imagesavealpha() sets the flag to attempt to save full alpha channel information (as opposed to single-color transparency) when saving PNG images.
Version
PHP 4.3.2, 5
Return value
Returns TRUE on success or FALSE on failure.