Create new image using just some pixels data from the source image based on them color

馋奶兔 提交于 2019-12-25 04:07:01

问题


I have original image and I can cycle all pixels using @patrick-rutkowski answer here. Also I have this answer seems to create image with pixel data. But I can't understand how to combine these two answers. So the first task is get pixel and second is add it to another CGImage. For example if I want to extract all red pixels from the original image and add these red pixels to another image. I suppose it's way to go.

来源:https://stackoverflow.com/questions/28310186/create-new-image-using-just-some-pixels-data-from-the-source-image-based-on-them

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!