Home > PHP > Function > GD > imagecreatetruecolor()

imagecreatetruecolor()

imagecreatetruecolor - Create a new true color image

Syntax

resource imagecreatetruecolor (int $width, int $height)

Arguments

  • width - Image width.
  • height - Image height.

Description

imagecreatetruecolor() returns an image identifier representing a black image of the specified size.

Version

PHP 4.0.6, 5

Return value

Returns an image resource identifier on success, FALSE on errors.