Forum und email

ImagickPixel::setColorValue

(No version information available, might be only in CVS)

ImagickPixel::setColorValue — Sets the normalized value of one of the channels

Description

bool ImagickPixel::setColorValue ( int $color , float $value )
Warning

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.

Warning

Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.

Sets the value of the specified channel of this object to the provided value, which should be between 0 and 1. This function can be used to provide an opacity channel to an ImagickPixel object.

Liste de paramètres

color

One of the Imagick channel color constants.

value

The value to set this channel to, ranging from 0 to 1.

Valeurs de retour

Returns TRUE on success.