Getting a Black and White UIImage (Not Grayscale)

前端 未结 6 1692
独厮守ぢ
独厮守ぢ 2021-02-04 20:23

I need to get a pure black and white UIImage from another UIImage (not grayscale). Anyone can help me?

Thanks for reading.

EDITED:

Here

6条回答
  •  再見小時候
    2021-02-04 21:03

    If what you're looking for is to threshold the image -- everything brighter than a certain value turns white, everything darker turns black, and you pick the value -- then a library like GPU Image will work for you.

提交回复
热议问题