略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Gmagick::setsize

2024-04-27

Gmagick::setsize

(PECL gmagick >= Unknown)

Gmagick::setsizeSets the size of the Gmagick object

说明

public Gmagick::setsize(int $columns, int $rows): Gmagick

Sets the size of the Gmagick object. Set it before you read a raw image format such as Gmagick::COLORSPACE_RGB, Gmagick::COLORSPACE_GRAY, or Gmagick::COLORSPACE_CMYK.

参数

columns

The width in pixels.

rows

The height in pixels.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/gmagick.setsize.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3