= Unknown)Gmagick::scaleimage — Scales the size of an image說明public Gmagick::scaleimage(int $width, int $height, boo">

Gmagick::scaleimage

(PECL gmagick >= Unknown)

Gmagick::scaleimageScales the size of an image

說明

public Gmagick::scaleimage(int $width, int $height, bool $fit = false): Gmagick

Scales the size of an image to the given dimensions. The other parameter will be calculated if 0 is passed as either param.

參數(shù)

width

The number of columns in the scaled image.

height

The number of rows in the scaled image.

返回值

The Gmagick object.

錯(cuò)誤/異常

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