wess / Glimpse

UIView recording library.
MIT License
557 stars 42 forks source link

Seems to record things upside-down #1

Closed cannyboy closed 10 years ago

cannyboy commented 11 years ago

I added a UISwitch to the sample app, and noticed that the the view is recorded upside down: http://cl.ly/3U2w3o1R3I33

voyager163 commented 10 years ago

Hi, I have the same issue..How to solve it?

VaibhaviOSGeek commented 10 years ago

Go to GlimpseAssetWriter.m -(CVPixelBufferRef)pixelBufferForImage:(UIImage *)image method in GlimpseAssetWriter.m You just need to Comment these three lines, //CGContextConcatCTM(context, CGAffineTransformMakeRotation(0)); // CGContextConcatCTM(context, CGAffineTransformMake(1.0f, 0.0f, 0.0f, -1.0f, 0.0f, CGImageGetHeight(cgImage))); //CGContextConcatCTM(context, CGAffineTransformMake(-1.0f, 0.0f, 0.0f, 1.0f, CGImageGetWidth(cgImage), 0.0f)); It works fine.