¡@

Home 

2014/10/15 ¤U¤È 10:04:02

iphone Programming Glossary: aspectratio

How do I modify a GPUImageGaussianSelectiveBlurFilter to operate over a rectangle instead of a circle?

http://stackoverflow.com/questions/12257429/how-do-i-modify-a-gpuimagegaussianselectiveblurfilter-to-operate-over-a-rectangl

float excludeCircleRadius uniform lowp vec2 excludeCirclePoint uniform lowp float excludeBlurSize uniform highp float aspectRatio void main lowp vec4 sharpImageColor texture2D inputImageTexture textureCoordinate lowp vec4 blurredImageColor texture2D.. inputImageTexture2 textureCoordinate2 highp vec2 textureCoordinateToUse vec2 textureCoordinate2.x textureCoordinate2.y aspectRatio 0.5 0.5 aspectRatio highp float distanceFromCenter distance excludeCirclePoint textureCoordinateToUse gl_FragColor mix sharpImageColor.. highp vec2 textureCoordinateToUse vec2 textureCoordinate2.x textureCoordinate2.y aspectRatio 0.5 0.5 aspectRatio highp float distanceFromCenter distance excludeCirclePoint textureCoordinateToUse gl_FragColor mix sharpImageColor blurredImageColor..

how to fit pdf page in entire view

http://stackoverflow.com/questions/4321681/how-to-fit-pdf-page-in-entire-view

NSStringFromCGPoint layer.bounds.origin NSLog @ page size of the book is @ NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height if aspectRatio 0.5 aspectRatio 0.74 NSLog @ aspect ratio is between 0.5 and 0.74 CGContextTranslateCTM.. NSLog @ page size of the book is @ NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height if aspectRatio 0.5 aspectRatio 0.74 NSLog @ aspect ratio is between 0.5 and 0.74 CGContextTranslateCTM ctx 110 layer.bounds.size.height.. of the book is @ NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height if aspectRatio 0.5 aspectRatio 0.74 NSLog @ aspect ratio is between 0.5 and 0.74 CGContextTranslateCTM ctx 110 layer.bounds.size.height 100 CGContextScaleCTM..

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

NSStringFromCGPoint layer.bounds.origin NSLog @ page size of the book is @ NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height CGRect cropBox CGPDFPageGetBoxRect myPageRef kCGPDFCropBox CGRect targetRect layer.bounds..

Display PDF on iPad

http://stackoverflow.com/questions/4722526/display-pdf-on-ipad

NSStringFromCGPoint layer.bounds.origin NSLog @ page size of the book is @ NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height NSLog @ the value of aspect ratio is f aspectRatio CGRect cropBox CGPDFPageGetBoxRect myPageRef.. NSStringFromCGSize pageSize CGFloat aspectRatio pageSize.width pageSize.height NSLog @ the value of aspect ratio is f aspectRatio CGRect cropBox CGPDFPageGetBoxRect myPageRef kCGPDFCropBox NSLog @ the crop box values @ NSStringFromCGRect cropBox CGRect..