Commit 0de02cdb authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

UIImage scaling: prevent unwanted black borders on resized imagery

parent 5d00ca40
......@@ -36,7 +36,7 @@
CGContextSetInterpolationQuality(contextRef, kCGInterpolationLow);
CGContextDrawImage(contextRef, destinationRect, cgImage);
CGContextDrawImage(contextRef, (CGRect){CGPointZero, destinationRect.size}, cgImage);
return [UIImage imageWithCGImage:CGBitmapContextCreateImage(contextRef)];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment