= Unknown)Gmagick::newimage — Creates a new image說明public Gmagick::newimage( int $width, int $height, string ">

Gmagick::newimage

(PECL gmagick >= Unknown)

Gmagick::newimageCreates a new image

說明

public Gmagick::newimage(
    int $width,
    int $height,
    string $background,
    string $format = ?
): Gmagick

Creates a new image with the specified background color.

參數(shù)

width

Width of the new image.

height

Height of the new image.

background

The background color used for this image (as float).

format

Image format.

返回值

The Gmagick object.

錯(cuò)誤/異常

錯(cuò)誤時(shí)拋出 GmagickException