Gmagick
PHP Manual

Gmagick::setimageunits

(PECL gmagick >= Unknown)

Gmagick::setimageunitsSets the image units of resolution.

说明

public Gmagick Gmagick::setimageunits ( int $resolution )

Sets the image units of resolution.

参数

resolution

The image units of resolution : Undefinedresolution, PixelsPerInchResolution, or PixelsPerCentimeterResolution.

返回值

The Gmagick object on success.

错误/异常

Throws an GmagickException on error.


Gmagick
PHP Manual