iphone Programming Glossary: cgaffinetransformmaketranslation
ALAsset Photo Library Image Performance Improvements When Its Loading Slow http://stackoverflow.com/questions/13508535/alasset-photo-library-image-performance-improvements-when-its-loading-slow
MFMailComposeViewController image orientation http://stackoverflow.com/questions/20204495/mfmailcomposeviewcontroller-image-orientation EXIF 1 transform CGAffineTransformIdentity break case UIImageOrientationUpMirrored EXIF 2 transform CGAffineTransformMakeTranslation imageSize.width 0.0 transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationDown EXIF 3 transform.. 0.0 transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationDown EXIF 3 transform CGAffineTransformMakeTranslation imageSize.width imageSize.height transform CGAffineTransformRotate transform M_PI break case UIImageOrientationDownMirrored.. transform CGAffineTransformRotate transform M_PI break case UIImageOrientationDownMirrored EXIF 4 transform CGAffineTransformMakeTranslation 0.0 imageSize.height transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationLeftMirrored EXIF..
UITextField in UIAlertView on iPhone - how to make it responsive? http://stackoverflow.com/questions/376104/uitextfield-in-uialertview-on-iphone-how-to-make-it-responsive 45.0 245.0 25.0 nameField setBackgroundColor UIColor whiteColor dialog addSubview nameField CGAffineTransform moveUp CGAffineTransformMakeTranslation 0.0 100.0 dialog setTransform moveUp dialog show I also have the following code to deal with the alert view void alertView..
how to fit pdf page in entire view http://stackoverflow.com/questions/4321681/how-to-fit-pdf-page-in-entire-view is f scaleToApply NSLog @ the view bounds are @ self.view description if scaleToApply yScale CGContextConcatCTM ctx CGAffineTransformMakeTranslation 100 150 else CGContextConcatCTM ctx CGAffineTransformMakeTranslation 180 260 evans CGContextConcatCTM ctx CGAffineTransformMakeScale.. if scaleToApply yScale CGContextConcatCTM ctx CGAffineTransformMakeTranslation 100 150 else CGContextConcatCTM ctx CGAffineTransformMakeTranslation 180 260 evans CGContextConcatCTM ctx CGAffineTransformMakeScale scaleToApply scaleToApply CGContextConcatCTM ctx CGPDFPageGetDrawingTransform..
problem with rendering pdf on the entire screen of pdf http://stackoverflow.com/questions/4634331/problem-with-rendering-pdf-on-the-entire-screen-of-pdf is f scaleToApply NSLog @ the view bounds are @ self.view description if scaleToApply yScale CGContextConcatCTM ctx CGAffineTransformMakeTranslation 100 150 else CGContextConcatCTM ctx CGAffineTransformMakeTranslation 180 260 CGContextConcatCTM ctx CGAffineTransformMakeScale.. if scaleToApply yScale CGContextConcatCTM ctx CGAffineTransformMakeTranslation 100 150 else CGContextConcatCTM ctx CGAffineTransformMakeTranslation 180 260 CGContextConcatCTM ctx CGAffineTransformMakeScale scaleToApply scaleToApply CGContextConcatCTM ctx CGPDFPageGetDrawingTransform..
UIPicker sizing in landscape mode http://stackoverflow.com/questions/535164/uipicker-sizing-in-landscape-mode rotate CGAffineTransformMakeRotation 1.57 rotate CGAffineTransformScale rotate .46 2.25 CGAffineTransform t0 CGAffineTransformMakeTranslation 3 22.5 picker.transform CGAffineTransformConcat rotate t0 self.view addSubview picker picker release Then I like to add..
UIImagePickerController camera preview is portrait in landscape app http://stackoverflow.com/questions/538041/uiimagepickercontroller-camera-preview-is-portrait-in-landscape-app EXIF 1 transform CGAffineTransformIdentity break case UIImageOrientationUpMirrored EXIF 2 transform CGAffineTransformMakeTranslation imageSize.width 0.0 transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationDown EXIF 3 transform.. 0.0 transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationDown EXIF 3 transform CGAffineTransformMakeTranslation imageSize.width imageSize.height transform CGAffineTransformRotate transform M_PI break case UIImageOrientationDownMirrored.. transform CGAffineTransformRotate transform M_PI break case UIImageOrientationDownMirrored EXIF 4 transform CGAffineTransformMakeTranslation 0.0 imageSize.height transform CGAffineTransformScale transform 1.0 1.0 break case UIImageOrientationLeftMirrored EXIF 5..
How to combine video clips with different orientation using AVFoundation http://stackoverflow.com/questions/6575128/how-to-combine-video-clips-with-different-orientation-using-avfoundation CGAffineTransformMakeScale s s float x size.height size.width s 2 CGAffineTransform newer CGAffineTransformConcat new CGAffineTransformMakeTranslation x 0 layerInstruction setTransform newer atTime CMTimeMakeWithSeconds time 30 ok compositionVideoTrack insertTimeRange sourceVideoTrack.timeRange..
|