aboutsummaryrefslogtreecommitdiff
path: root/iPhone/GTMUIImage+Resize.h
diff options
context:
space:
mode:
Diffstat (limited to 'iPhone/GTMUIImage+Resize.h')
-rw-r--r--iPhone/GTMUIImage+Resize.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/iPhone/GTMUIImage+Resize.h b/iPhone/GTMUIImage+Resize.h
index 25e2125..a1d4ed3 100644
--- a/iPhone/GTMUIImage+Resize.h
+++ b/iPhone/GTMUIImage+Resize.h
@@ -37,4 +37,15 @@
- (UIImage *)gtm_imageByResizingToSize:(CGSize)targetSize
preserveAspectRatio:(BOOL)preserveAspectRatio
trimToFit:(BOOL)trimToFit;
+
+// Returns an image rotated by |orientation| where the current orientation is
+// taken as UIImageOrientationUp. Nil if |orientation| is invalid.
+//
+// For example, UIImageOrientationRight is a 90 degree rotation clockwise,
+// UIImageOrientationDown is a 180 degree rotation closewise.
+//
+// Supplying UIImageOrientationUp to |orientation| will return a copy of the
+// image.
+- (UIImage *)gtm_imageByRotating:(UIImageOrientation)orientation;
+
@end