cocoa - Set the CALayer blending mode using CIFilters -
i'm trying using property backgroundfilters of calayer manage sort of blendmode.
this current structure:
layer | |_______layer b the layer a content image. the layer b sublayer of layer a , has reddish backgroundcolor what i'm trying blending content of layer a using backgroundcolor of layer b.
i added b filter way:
cifilter *blending = [cifilter filterwithname:@"cicolorblendmode"]; blending.name = @"blendingfilter"; [blending setdefaults]; layerb.filters = [nsarray arraywithobject:blending]; but doesn't work.
which right way create colorblending effect between 2 layers?
(i'm working on osx not ios)
cocoa calayer
No comments:
Post a Comment