【问题标题】:Retrieving last non-transparent pixel position of a transparent UIImage检索透明 UIImage 的最后一个非透明像素位置
【发布时间】:2011-12-04 22:27:26
【问题描述】:

如何检索透明图像的左上/右上/左下/右下非透明像素?

【问题讨论】:

    标签: objective-c uiimage transparency pixel alpha


    【解决方案1】:

    您可以extract the pixel data 的图像并比较 alpha 值(通过迭代返回的数组或(更有效地)通过更改链接算法来比较适当的点,从而避免 NSArray 与颜色的需要) .

    【讨论】:

      猜你喜欢
      • 2016-03-12
      • 2014-05-11
      • 2019-01-26
      • 1970-01-01
      • 1970-01-01
      • 2011-10-15
      • 2023-04-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多