¡@

Home 

2014/10/15 ¤U¤È 10:13:30

iphone Programming Glossary: rotationtransform

how to export video asset via AVAssetExportSession in portrait mode

http://stackoverflow.com/questions/10034337/how-to-export-video-asset-via-avassetexportsession-in-portrait-mode

... After you added all your tracks apply your transform to the video track of your composition CGAffineTransform rotationTransform CGAffineTransformMakeRotation M_PI_2 CGAffineTransform rotateTranslate CGAffineTransformTranslate rotationTransform 360.. rotationTransform CGAffineTransformMakeRotation M_PI_2 CGAffineTransform rotateTranslate CGAffineTransformTranslate rotationTransform 360 0 videoTrack.preferredTransform rotationTransform be carful that the transform had the upper left corner as origin so.. CGAffineTransform rotateTranslate CGAffineTransformTranslate rotationTransform 360 0 videoTrack.preferredTransform rotationTransform be carful that the transform had the upper left corner as origin so the translation was needed after rotation but tested..

Core Animation rotating a layer around arbitrary point

http://stackoverflow.com/questions/199608/core-animation-rotating-a-layer-around-arbitrary-point

of the layer. I tried something like that but it didn't work UIImageView beginAnimations nil context nil CATransform3D rotationTransform CATransform3DIdentity rotationTransform CATransform3DTranslate rotationTransform 0.0 100.0 0.0 rotationTransform CATransform3DRotate.. but it didn't work UIImageView beginAnimations nil context nil CATransform3D rotationTransform CATransform3DIdentity rotationTransform CATransform3DTranslate rotationTransform 0.0 100.0 0.0 rotationTransform CATransform3DRotate rotationTransform DegreesToRadians.. nil context nil CATransform3D rotationTransform CATransform3DIdentity rotationTransform CATransform3DTranslate rotationTransform 0.0 100.0 0.0 rotationTransform CATransform3DRotate rotationTransform DegreesToRadians 180 0.0 0.0 1.0 rotationTransform..

how can I use animation in cocos2d?

http://stackoverflow.com/questions/486609/how-can-i-use-animation-in-cocos2d

initializing it with your roulette wheel image. When you want the wheel to spin use the following code CATransform3D rotationTransform CATransform3DMakeRotation 1.0f M_PI 0 0 1.0 CABasicAnimation rotationAnimation rotationAnimation CABasicAnimation animationWithKeyPath.. CABasicAnimation animationWithKeyPath @ transform rotationAnimation.toValue NSValue valueWithCATransform3D rotationTransform rotationAnimation.duration 0.25f rotationAnimation.cumulative YES rotationAnimation.repeatCount 10 rotatingImage.layer addAnimation..