php8.5
Home/ Manual/ imagick / imagick/ Imagick::setBackgroundColor

Imagick::setBackgroundColor

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Sets the object's default background color

Description

Imagick::setBackgroundColor(mixed $background): bool

Sets the object's default background color.

Parameters

background

Return Values

Success

Changelog

VersionDescription
PECL imagick 2.1.0Now allows a string representing the color as a parameter. Previous versions allow only an ImagickPixel object.

Source: reference/imagick/imagick/setbackgroundcolor.xml · from the official PHP manual (php/doc-en)