Set the compositingFilter layer of the view layer to a supported blending mode line. In documents, the compositingFilter layer
The CoreImage filter used to lay out the layer and the content behind it.
For a list of Core Image filters, print the filter names defined by kCICategoryCompositeOperation
[CIFilter filterNamesInCategory:kCICategoryCompositeOperation]
or directly as
[CIFilter filterNamesInCategory:@"CICategoryCompositeOperation"]
The array will include main image filters in the form
{ CIColorBlendMode, CIColorBurnBlendMode, CIColorDodgeBlendMode, CIMultiplyBlendMode, ... }
To use CIMultiplyBlendMode, set "multiplyBlendMode" as a composite filter at level
self.layer.compositingFilter = @"multiplyBlendMode";
bdev
source share