【问题标题】:what are the limits for IMG_FILTER_CONTRAST imagefilterIMG_FILTER_CONTRAST 图像过滤器的限制是什么
【发布时间】:2016-05-11 20:59:29
【问题描述】:

我正在研究 php gd 图像过滤器。灰度、亮度、否定、着色效果很好,但尝试imagefilter($img, IMG_FILTER_CONTRAST, $level); 我发现它有点模棱两可。 php manual 中没有明确提到对比度的级别限制。将电平值置于 255 以上和 -255 以下也会产生一些结果。 imagefilter($img, IMG_FILTER_SMOOTH, $level); 也是如此 那么,有人可以澄清一下php gd中对比度级别的有限范围是什么。 提前谢谢..

【问题讨论】:

    标签: php image gd contrast imagefilter


    【解决方案1】:

    根据imagefilter manual中的cmets:

    IMG_FILTER_CONTRAST
    -100 = max contrast, 0 = no change, +100 = min contrast (note the direction!)
    

    【讨论】:

      猜你喜欢
      • 2017-10-20
      • 2012-09-09
      • 1970-01-01
      • 1970-01-01
      • 2014-09-18
      • 2014-03-22
      • 2021-07-07
      • 2014-06-26
      • 2011-12-17
      相关资源
      最近更新 更多