略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ImagickPixel::isPixelSimilarQuantum

2025-02-27

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

返回值

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/imagickpixel.ispixelsimilarquantum.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3