downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::setColorspace> <Imagick::sepiaToneImage
[edit] Last updated: Sun, 19 May 2013

view this page in

Imagick::setBackgroundColor

(PECL imagick 2.0.0)

Imagick::setBackgroundColorConfigure la couleur de fond par défaut

Description

bool Imagick::setBackgroundColor ( mixed $background )

Configure la couleur de fond par défaut.

Liste de paramètres

background

Valeurs de retour

Returns TRUE on success.

Historique

Version Description
2.1.0 Permet désormais l'utilisation d'une chaîne pour représenter la couleur. Les versions précédentes ne permettaient que les objets ImagickPixel.



add a note add a note User Contributed Notes Imagick::setBackgroundColor - [1 notes]
up
0
eleg
1 year ago
Be cautious and set bgcolor BEFORE importing a SVG with transparency!  :-/

<?php

$im
= new Imagick();
$im->setBackgroundColor(new ImagickPixel('transparent'));

$im->readImage('carte_Alain2.svg');

$im->setImageFormat("png32");

header('Content-type: image/png');
echo
$im;
?>

 
show source | credits | sitemap | contact | advertising | mirror sites