在线文档教程
PHP
Image/GraphicsMagick

Gmagick::setfilename

Gmagick::setfilename

(PECL gmagick >= Unknown)

Gmagick::setfilename — Sets the filename before you read or write the image

Description

public Gmagick Gmagick::setfilename ( string $filename )

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

Parameters

filename

The image filename.

Return Values

The Gmagick object on success

Errors/Exceptions

Throws an GmagickException on error.

← Gmagick::setCompressionQuality

Gmagick::setimagebackgroundcolor →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/gmagick.setfilename.php