imagecreatetruecolor

PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
imagecreatetruecolor - Create a new true color image
Manual
Code Examples

imagecreatetruecolor( int$width, int$height ): GdImage|false

imagecreatetruecolor returns an image object representing a black image of the specified size.

Parameters

width

Image width.

height

Image height.

Return Values

Returns an image object on success, false on errors.

Changelog

Version Description
8.0.0 On success, this function returns a GDImage instance now; previously, a resource was returned.

Related Functions

Example of imagecreatetruecolor

Show all examples for imagecreatetruecolor

PHP Version:


Function imagecreatetruecolor:

Image Processing and GD Functions

Most used PHP functions