<progress id="6kha4"><menu id="6kha4"></menu></progress>
  • <strong id="6kha4"></strong>
    • ? Imagick::textureImage
    • Imagick::thumbnailImage ?
    • Bejson.com
    • PHP Manual
    • Imagick
    • Changes the value of individual pixels based on a threshold

    Imagick::thresholdImage

    (PECL imagick 2, PECL imagick 3)

    Imagick::thresholdImage — Changes the value of individual pixels based on a threshold

    說(shuō)明

    public Imagick::thresholdImage(float $threshold, int $channel = Imagick::CHANNEL_DEFAULT): bool

    Changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.

    參數(shù)

    threshold

    channel

    返回值

    成功時(shí)返回 true。

    范例

    示例 #1 Imagick::thresholdImage()

    <?php
    function thresholdimage($imagePath, $threshold, $channel) {
        
    $imagick = new \Imagick(realpath($imagePath));
        
    $imagick->thresholdimage($threshold * \Imagick::getQuantum(), $channel);
        
    header("Content-Type: image/jpg");
        echo 
    $imagick->getImageBlob();
    }

    ?>

    感谢您访问我们的网站,您可能还对以下资源感兴趣:

    久久国产免费观看精品3_少妇按摩推油舒服到高潮连连_亚洲色欲色欲www在线观看_国自产在线精品一本无码中文

    <label id="30jt1"></label>