Imagick
PHP Manual

Imagick::transparentPaintImage

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

Imagick::transparentPaintImagePaints pixels transparent

Opis

bool Imagick::transparentPaintImage ( mixed $target , float $alpha , float $fuzz , bool $invert )

Paints pixels matching the target color transparent. Ta metoda jest dostępna, jeśli rozszerzenie Imagick zostało skompilowane z ImageMagick w wersji 6.3.8 lub nowszej.

Parametry

target

The target color to paint

alpha

Poziom przezroczystości: 1.0 - w pełni nieprzezroczysty, 0.0 - w pełni przezroczysty.

fuzz

The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.

invert

If TRUE paints any pixel that does not match the target color.

Zwracane wartości

Zwraca TRUE w przypadku sukcesu.


Imagick
PHP Manual