Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想对灰度 UIImage 设置阈值。最简单的方法是什么?
我想我必须获取 UIImage 的位图,然后将其与某个值进行比较,然后将其设置为 0/255。如何获取位图?
如果你想从 UIImage 获取位图,这里有一个完整的教程。
iOS:将 UIImage 转换为 RGBA8 位图并返回
这肯定会帮助你。
谢谢