Affine Transforms with Demo App

Posted by Dex on Stack Overflow See other posts from Stack Overflow or by Dex
Published on 2012-10-21T09:35:01Z Indexed on 2012/10/21 23:01 UTC
Read the original article Hit count: 165

Filed under:
|
|

I have a demo app here https://github.com/rdetert/image-transform-test

After importing an image, you can pinch, zoom, rotate the image. What I want to do is save out a 640x480 image (landscape mode) that looks identical to the live preview. So if there are 100px bars of empty space on the sides, I need the same empty bars in the final output (scaled appropriately).

This is proving to be more difficult than I thought it would be. I can't quite get it to come out right after days of working on it.

The magic method that generates the final image is called -(void)generateFinalImage

Good luck! ;)

© Stack Overflow or respective owner

Related posts about ios

Related posts about uiimage