在线文档教程
PHP
Image/ImageMagick

Imagick::__construct

Imagick::__construct

(PECL imagick 2.0.0)

Imagick::__construct — The Imagick constructor

Description

Imagick::__construct ( mixed $files )

Creates an Imagick instance for a specified image or set of images.

Parameters

files

The path to an image to load or an array of paths. Paths can include wildcards for file names, or can be URLs.

Return Values

Returns a new Imagick object on success.

Errors/Exceptions

Throws ImagickException on error.

← Imagick::compositeImage

Imagick::contrastImage →

© 1997–2017 The PHP Documentation Group

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

https://secure.php.net/manual/en/imagick.construct.php