aboutsummaryrefslogtreecommitdiff
path: root/iPhone
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2015-09-08 11:51:54 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2015-09-08 11:51:54 -0400
commit575e7c5757ff1304c24fd35bdd4d377d2066f03a (patch)
tree03af0a38365c89dd48d429b11bc6088bb0c779cb /iPhone
parentbb48b5e0f412cca36dc0aea85d7bff1ee029042a (diff)
keep the scale when resizing an image
Diffstat (limited to 'iPhone')
-rw-r--r--iPhone/GTMUIImage+Resize.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/iPhone/GTMUIImage+Resize.m b/iPhone/GTMUIImage+Resize.m
index c22515e..0965c3e 100644
--- a/iPhone/GTMUIImage+Resize.m
+++ b/iPhone/GTMUIImage+Resize.m
@@ -156,7 +156,7 @@ GTM_INLINE CGSize swapWidthAndHeight(CGSize size) {
return nil;
}
- UIGraphicsBeginImageContext(bounds.size);
+ UIGraphicsBeginImageContextWithOptions(bounds.size, NO, self.scale);
CGContextRef context = UIGraphicsGetCurrentContext();
switch (orientation) {