Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Gmagick::setfilenameGmagick::setimageblueprimary>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::setimagebackgroundcolor

(PECL gmagick >= Unknown)

Gmagick::setimagebackgroundcolor — Sets the image background color

Description

public function Gmagick::setimagebackgroundcolor(GmagickPixel $color): Gmagick

Sets the image background color.

Parameters

color

The background pixel wand.

Return Values

The Gmagick object.

Errors/Exceptions

Throws an GmagickException on error.


<Gmagick::setfilenameGmagick::setimageblueprimary>
^GmagickLast updated: Mon, 26 Oct 2026