iphone Programming Glossary: ctm
iPhone, CGPDFDocument - PDF links http://stackoverflow.com/questions/3257057/iphone-cgpdfdocument-pdf-links  expects a Lower Left coordinate system so we flip the coordinate system before we start drawing. CGContextTranslateCTM context 0.0 self.bounds.size.height CGContextScaleCTM context 1.0 1.0 Grab the first PDF page CGPDFPageRef page CGPDFDocumentGetPage.. the coordinate system before we start drawing. CGContextTranslateCTM context 0.0 self.bounds.size.height CGContextScaleCTM context 1.0 1.0 Grab the first PDF page CGPDFPageRef page CGPDFDocumentGetPage pdf pageNumber We're about to modify the.. 1.0 Grab the first PDF page CGPDFPageRef page CGPDFDocumentGetPage pdf pageNumber We're about to modify the context CTM to draw the PDF page where we want it so save the graphics state in case we want to do more drawing CGContextSaveGState.. 
 Selecting Text in PDF file (iphone) http://stackoverflow.com/questions/3657550/selecting-text-in-pdf-file-iphone  ctx CGPDFDocumentRef doc CGPDFDocumentRetain self.document CGPDFPageRef page CGPDFDocumentGetPage doc 1 Transform the CTM compensating for flipped coordinate system CGContextTranslateCTM ctx 0.0 layer.bounds.size.height CGContextScaleCTM ctx.. page CGPDFDocumentGetPage doc 1 Transform the CTM compensating for flipped coordinate system CGContextTranslateCTM ctx 0.0 layer.bounds.size.height CGContextScaleCTM ctx 1.0 1.0 Draw PDF scaled to fit CGContextConcatCTM ctx CGPDFPageGetDrawingTransform.. CTM compensating for flipped coordinate system CGContextTranslateCTM ctx 0.0 layer.bounds.size.height CGContextScaleCTM ctx 1.0 1.0 Draw PDF scaled to fit CGContextConcatCTM ctx CGPDFPageGetDrawingTransform page kCGPDFCropBox layer.bounds 0.. 
 Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints? http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints  warnings are issued. Whenever the user start zooming I acquire the CGPDFPage and render it using the appropriate CTM. The code in void drawLayer CALayer layer inContext CGContextRef context is like CGAffineTransform currentCTM CGContextGetCTM.. CTM. The code in void drawLayer CALayer layer inContext CGContextRef context is like CGAffineTransform currentCTM CGContextGetCTM context if currentCTM.a 1.0 baseImage Calculate ideal scale CGFloat scaleForWidth baseImage.size.width self.bounds.size.width.. code in void drawLayer CALayer layer inContext CGContextRef context is like CGAffineTransform currentCTM CGContextGetCTM context if currentCTM.a 1.0 baseImage Calculate ideal scale CGFloat scaleForWidth baseImage.size.width self.bounds.size.width.. 
 Rendering a CGPDFPage into a UIImage http://stackoverflow.com/questions/4639781/rendering-a-cgpdfpage-into-a-uiimage  is how do I select the full pdf page and flip it round to display correctly. I have seen a few examples using ScaleCTM and TranslateCTM but couldn't seem to get them working. Any examples in ObjectiveC are fine I'll take all the help I can.. the full pdf page and flip it round to display correctly. I have seen a few examples using ScaleCTM and TranslateCTM but couldn't seem to get them working. Any examples in ObjectiveC are fine I'll take all the help I can get Thanks  iphone..   I haven't worked with MonoTouch. However in objective C you would get an image for a PDF page like this notice the CTM transforms UIImage getThumbForPage int page_number CGFloat width 60.0 Get the page CGPDFPageRef myPageRef CGPDFDocumentGetPage.. 
 Draw glow around inside edge of multiple CGPaths http://stackoverflow.com/questions/8480401/draw-glow-around-inside-edge-of-multiple-cgpaths  8 scaledSize.width NULL kCGImageAlphaOnly Adjust the current transform matrix for the screen scale. CGContextScaleCTM gc scale scale Adjust the CTM in case the bounds origin isn't zero. CGContextTranslateCTM gc bounds.origin.x bounds.origin.y.. Adjust the current transform matrix for the screen scale. CGContextScaleCTM gc scale scale Adjust the CTM in case the bounds origin isn't zero. CGContextTranslateCTM gc bounds.origin.x bounds.origin.y whiteColor has all components.. screen scale. CGContextScaleCTM gc scale scale Adjust the CTM in case the bounds origin isn't zero. CGContextTranslateCTM gc bounds.origin.x bounds.origin.y whiteColor has all components 1 including alpha. CGContextSetFillColorWithColor gc UIColor.. 
 UIImage Rotation custom degrees http://stackoverflow.com/questions/917713/uiimage-rotation-custom-degrees  CGSize size sizeOfImage UIGraphicsBeginImageContext size CGContextRef ctx UIGraphicsGetCurrentContext CGContextRotateCTM ctx angleInRadians CGContextDrawImage ctx CGRect size image UIImage image UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext.. UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return image You might need to also translate the CTM in addition to rotating to compensate for the center of rotation. If you want to not crop the edges of the image when rotating.. 
 
 
     
      |