You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started using this guide on how to generate QR codes for my app and it mostly works, but I notice that the -createNonInterpolatedUIImageFromCIImage method posted here actually flips the given image vertically. I verified this by comparing it to UIImage +imageWithCIImage, which gave me an interpolated image that was the right orientation. Adding a line
scaledImage = [UIImage imageWithCGImage:scaledImage.CGImage scale:1.0 orientation:UIImageOrientationDownMirrored];
into the end of the method flips it back to vertical.
The text was updated successfully, but these errors were encountered:
A better way of doing this is probably within the existing CGContext. Should add these 2 lines before CGContextDrawImage(context, CGContextGetClipBoundingBox(context), cgImage);
I just started using this guide on how to generate QR codes for my app and it mostly works, but I notice that the -createNonInterpolatedUIImageFromCIImage method posted here actually flips the given image vertically. I verified this by comparing it to UIImage +imageWithCIImage, which gave me an interpolated image that was the right orientation. Adding a line
scaledImage = [UIImage imageWithCGImage:scaledImage.CGImage scale:1.0 orientation:UIImageOrientationDownMirrored];
into the end of the method flips it back to vertical.
The text was updated successfully, but these errors were encountered: