update page now

ImagickPixel::isPixelSimilarQuantum

(PECL imagick 3 >= 3.3.0)

ImagickPixel::isPixelSimilarQuantumふたつの色の差が指定した距離未満かどうかを返す

説明

public ImagickPixel::isPixelSimilarQuantum(string $color, string $fuzz = ?): bool

ふたつの色の差が指定した距離未満の場合に true を返します。 fuzz の値は 0 から QuantumRange の範囲で指定します。 最大値は、色空間上で取り得る最長距離を表します。 たとえば RGB 色空間では RGB(0, 0, 0) から RGB(255, 255, 255) までの距離です。

パラメータ

color

fuzz

戻り値

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top