在线文档教程
PHP
Image/ImageMagick

Imagick::setSize

Imagick::setSize

(PECL imagick 2.0.0)

Imagick::setSize — Sets the size of the Imagick object

Description

bool Imagick::setSize ( int $columns , int $rows )

Sets the size of the Imagick object. Set it before you read a raw image format such as RGB, GRAY, or CMYK.

Parameters

columns rows

Return Values

Returns TRUE on success.

← Imagick::setSamplingFactors

Imagick::setSizeOffset →

© 1997–2017 The PHP Documentation Group

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

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