PHP 8.4.0 RC4 available for testing

ImagickPixel::isPixelSimilarQuantum

(PECL imagick 3 >= 3.3.0)

ImagickPixel::isPixelSimilarQuantumReturns whether two colors differ by less than the specified distance

Опис

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

Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange. The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace

Параметри

color

fuzz

Значення, що повертаються

add a note

User Contributed Notes

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