开发者

Replacing one colour with another in an NSImage

开发者 https://www.devze.com 2022-12-17 15:30 出处:网络
I have an NSImage and want to replace one color in it with another (e.g. replace all the blue with a green colour开发者_开发百科)Is there an easy way to do this and if not, how could I get this functi

I have an NSImage and want to replace one color in it with another (e.g. replace all the blue with a green colour开发者_开发百科) Is there an easy way to do this and if not, how could I get this functionality?


This is a job for core image. Or, you can use use Quartz Composer to figure out your image filter, and embed a QCView in your app.

0

精彩评论

暂无评论...
验证码 换一张
取 消