summaryrefslogtreecommitdiff
path: root/Juick/UIImage+Crop.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-12-18 05:53:29 +0400
committerGravatar Vitaly Takmazov2013-12-18 05:53:29 +0400
commitce630eef61d4acd8f5c4e1d6a3a60780c5ec4af3 (patch)
tree7b3364a9e343ec728d7e4886c61c89330b096986 /Juick/UIImage+Crop.m
parenta4d2e426a36111a2da3683025ab129ef701d5a3f (diff)
cleanup and ios6 fixes
Diffstat (limited to 'Juick/UIImage+Crop.m')
-rw-r--r--Juick/UIImage+Crop.m28
1 files changed, 0 insertions, 28 deletions
diff --git a/Juick/UIImage+Crop.m b/Juick/UIImage+Crop.m
deleted file mode 100644
index d51b94e..0000000
--- a/Juick/UIImage+Crop.m
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// UIImage+Crop.m
-// Juick
-//
-// Created by Vitaly Takmazov on 05.11.13.
-// Copyright (c) 2013 com.juick. All rights reserved.
-//
-
-#import "UIImage+Crop.h"
-
-@implementation UIImage (Crop)
-
-- (UIImage *)crop:(CGRect)rect {
-
- rect = CGRectMake(rect.origin.x*self.scale,
- rect.origin.y*self.scale,
- rect.size.width*self.scale,
- rect.size.height*self.scale);
-
- CGImageRef imageRef = CGImageCreateWithImageInRect([self CGImage], rect);
- UIImage *result = [UIImage imageWithCGImage:imageRef
- scale:self.scale
- orientation:self.imageOrientation];
- CGImageRelease(imageRef);
- return result;
-}
-
-@end