PHP - Manual: Imagick::setSizeOffset
2025-10-24
(PECL imagick 2, PECL imagick 3)
Imagick::setSizeOffset — Sets the size and offset of the Imagick object
Sets the size and offset of the Imagick object. Set it before you read a raw image format such as RGB, GRAY, or CMYK. 此方法在Imagick基于ImageMagick 6.2.9以上版本编译时可用。
columnsThe width in pixels.
rowsThe height in pixels.
offsetThe image offset.
成功时返回 true。
官方地址:https://www.php.net/manual/en/imagick.setsizeoffset.php