imageistruecolor
PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8
imageistruecolor - Finds whether an image is a truecolor image
Manual
imageistruecolor(
GdImage$image ): bool
imageistruecolor finds whether the image image is a truecolor image.
Parameters
- image
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
Return Values
Returns true if the image is truecolor, false otherwise.
Changelog
Version | Description |
8.0.0 | image expects a GdImage instance now; previously, a resource was expected. |