I have a UIImageView
and want it to be displayed with a specific blend mode. I know the iPhone has different blend modes, and it's probably possible to do it with a lot of CG code… but maybe there's a nice way with the CALayer
of UIImageView
?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
see here: composite colors: CALayer and blend mode on iPhone
Set the compositingFilter of a view's layer to a supported blend mode string. From the docs, a layer's compositingFilter is
To obtain a list of Core Image filters, print out the filter names defined by a kCICategoryCompositeOperation
or directly as
The array will include Core Image filters in the form
To use the CIMultiplyBlendMode, set "multiplyBlendMode" as the compositingFilter on the layer