I am trying to use the main image on iphone. I can combine my colors with quartz to draw a uiview, but I want to split each component into CALayer (UIview consumes more resources).
So, I have a white mask that I want to use to filter out the background bitmap, and I want to try a different blending mode. Unfortunately, layers only “add” their colors.
Here is my code:
@implementation WhiteLayerHelper - (void)drawLayer:(CALayer *)theLayer inContext:(CGContextRef)myContext {
And here is the main drawrect view drawrect , where I use my CALayer:
- (void)drawRect:(CGRect)rect {
Something is wrong?
iphone calayer mode blend
Ali
source share