I have a 3х3 Matrix which I need to apply to UIImage and save it in Documents folder. I successfully converted the 3x3 Matrix (represented as [[Double]])
to CATrasform3D
and then I have broken my head with trying to figure out how to apply it to UIImage.
The only property where I can I apply it is UIView(or
UIImageView
in case with working with UIImage)
transform
property. But it has nothing to do with UIImage
itself. I can't save the UIImage
from transformed the UIImageView
with all the transformations.
And all the CoreGraphic methods (like concatenate for CGContext) only work with affine transformations which not suits for me.
Please give me a hint what direction I should look. Does Apple has native methods or I have to use 3rd party frameworks for this functionality?