开发者

How can I apply UIColor to an existing image?

I have a1.png image.开发者_StackOverflow中文版 I want to apply a color effect on that image. By "apply a colour" I mean a foreground color with alpha < 1. Does anyone have a solution?


I think you are looking for GLImageProcessing sample code


I haven't get solution for applying UIColor to existing image.

One alternative way is that instead of applying color to an image you can take a View and apply color to the view.

UIColor *color = [del color];

[perceptView setBackgroundColor:[color colorWithAlphaComponent:0.5]];

[perceptView setNeedsDisplay];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜