diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2015-09-08 11:51:54 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2015-09-08 11:51:54 -0400 |
commit | 575e7c5757ff1304c24fd35bdd4d377d2066f03a (patch) | |
tree | 03af0a38365c89dd48d429b11bc6088bb0c779cb /iPhone | |
parent | bb48b5e0f412cca36dc0aea85d7bff1ee029042a (diff) |
keep the scale when resizing an image
Diffstat (limited to 'iPhone')
-rw-r--r-- | iPhone/GTMUIImage+Resize.m | 2 |
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) { |