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::getfilenameGmagick::getimageblueprimary>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::getimagebackgroundcolor

(PECL gmagick >= Unknown)

Gmagick::getimagebackgroundcolor — Returns the image background color

Description

public function Gmagick::getimagebackgroundcolor(): GmagickPixel

Returns the image background color.

Parameters

This function has no parameters.

Return Values

Returns an GmagickPixel set to the background color of the image.

Errors/Exceptions

Throws an GmagickException on error.


<Gmagick::getfilenameGmagick::getimageblueprimary>
^GmagickLast updated: Mon, 26 Oct 2026