Imagick::opaquePaintImage
()
Imagick::opaquePaintImage — Changes the color value of any pixel that matches target
説明
bool Imagick::opaquePaintImage
( mixed $target
, mixed $fill
, float $fuzz
, bool $invert
[, int $channel = Imagick::CHANNEL_DEFAULT
] )
Changes any pixel that matches color with the color defined by fill. このメソッドは、ImageMagick バージョン 6.3.8 以降で Imagick をコンパイルした場合に使用可能です。
パラメータ
- target
-
ImagickPixel object or a string containing the color to change
- fill
-
The replacement color
- fuzz
-
あいまいさをあらわす量。たとえば、これを 10 に設定すると、 赤色の値が 100 の色と 102 の色は同じものとみなされます。
- invert
-
If TRUE paints any pixel that does not match the target color.
- channel
-
そのモードで有効なチャネル定数を指定します。 複数のチャネルを適用するには、チャネル定数 をビット演算子で組み合わせます。デフォルトは Imagick::CHANNEL_DEFAULT です。 チャネル定数 の一覧を参照ください。
返り値
成功した場合に TRUE を返します。
Imagick::opaquePaintImage
There are no user contributed notes for this page.
