array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'imagick.setbackgroundcolor.php', 1 => 'Imagick::setBackgroundColor', 2 => 'Sets the object\'s default background color', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.sepiatoneimage.php', 1 => 'Imagick::sepiaToneImage', ), 'next' => array ( 0 => 'imagick.setcolorspace.php', 1 => 'Imagick::setColorspace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/setbackgroundcolor.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::setBackgroundColor

(PECL imagick 2, PECL imagick 3)

Imagick::setBackgroundColorSets the object's default background color

Beschreibung

public Imagick::setBackgroundColor(mixed $background): bool

Sets the object's default background color.

Parameter-Liste

background

Rückgabewerte

Liefert true bei Erfolg.

Changelog

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