diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-05-26 18:06:02 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-05-26 18:06:02 +0000 |
commit | c8b442e4af5f12d91450e9b1fcce1468aa49de4e (patch) | |
tree | 6b4025ace69838de8fedcb96de8db0b0aa14d58a /iPhone/GTMUIImage+Resize.h | |
parent | 69491c3dd52dffcb3fdbaffeffb63483fbd15088 (diff) |
[Author: caseyho]
UIImage rotate method plus tests.
R=altse
APPROVED=altse
DELTA=152 (152 added, 0 deleted, 0 changed)
Diffstat (limited to 'iPhone/GTMUIImage+Resize.h')
-rw-r--r-- | iPhone/GTMUIImage+Resize.h | 11 |
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 |