(PECL gmagick >= Unknown)
Gmagick::newimage — Creates a new image
public Gmagick::newimage( int $width, int $height, string $background, string $format = ? ): Gmagick
Creates a new image with the specified background color.
widthWidth of the new image.
heightHeight of the new image.
backgroundThe background color used for this image (as float).
formatImage format.
The Gmagick object.
Throws an GmagickException on error.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gmagick.newimage.php