-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotating an image #1
Comments
I have a similar problem there I modify the view's I tried using for frame in 0..<frameCount {
dispatch_async(dispatch_get_main_queue(), { () -> Void in
updateBlock(view: view, frame: frame)
self.renderViewToImage(view)
})
} |
I have made some changes in Flipbook class to make this, I'm sure there are better ways to do this but it works ^_^ I added 3 new private properties
I have modified the method
And I added this new method
|
I expect a lot of people will be interested in this, so I'm putting up my example code. This uses core image to rotate the image inside an imageview and records the rotation into a animation.
This is because I couldn't get a transform to work on my snapshots how I would normally do it:
Zip of my working example using CIImage: http://cl.ly/3H20450t1T0F/Flipbook-orta.zip
The text was updated successfully, but these errors were encountered: