适用版本(PECL gmagick >= Unknown)
说明
public Gmagick::newimage(
int $width,
int $height,
string $background,
string $format = ?
): Gmagick
创建具有指定背景颜色的新图像。参数 ¶
width
新图像的宽度。
height
新图像的高度。
background
此图像使用的背景颜色(作为浮动)。
format
Image format.
返回值 ¶
gmagic对象。
错误/异常 ¶
错误时抛出 GmagickException。