PHP function imagepalettetotruecolor()
Availability in versions: PHP 5.5.0
Converts a palette based image to true color
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$image |
resource |
not | An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. |
Return values
bool
Returns TRUE if the conversion was complete, or if the source image already is a true color image, otherwise FALSE is returned.