Home > PHP > Function > > Imagick::newImage()

Imagick::newImage()

Imagick::newImage - Creates a new image

Syntax

bool Imagick::newImage (int $cols, int $rows, mixed $background, string $format)

Arguments

  • cols - Columns in the new image
  • rows - Rows in the new image
  • background - The background color used for this image
  • format - Image format. This parameter was added in Imagick version 2.0.1.

Description

Creates a new image and associates ImagickPixel value as background color

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.