Home > PHP > Function > GD > imagecreate()

imagecreate()

imagecreate - Create a new palette based image

Syntax

resource imagecreate (int $width, int $height)

Arguments

  • width - The image width.
  • height - The image height.

Description

imagecreate() returns an image identifier representing a blank image of specified size.

Version

PHP 4, 5

Return value

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