Gmagick::setfilename

(PECL gmagick >= Unknown)

Gmagick::setfilenameSets the filename before you read or write the image

说明

public Gmagick::setfilename(string $filename): Gmagick

Sets the filename before you read or write an image file.

参数

filename

The image filename.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException