summaryrefslogtreecommitdiff
path: root/Juick/UIImage+Crop.m
diff options
context:
space:
mode:
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