Permalink
Browse files

Remove references to UIImage+Alpha

-transparentBorderImage is defined in the now-removed UIImage+Alpha.h.
If borderSize was non-zero, the object would not respond to the
selector.  Remove the argument to suppress temptation.
  • Loading branch information...
1 parent 30861f2 commit 7f10e6a765019aa24ad1e44f5260937148f1d38c @gfiumara gfiumara committed Sep 5, 2011
Showing with 1 addition and 5 deletions.
  1. +0 −1 UIImage+Resize.h
  2. +1 −4 UIImage+Resize.m
View
@@ -7,7 +7,6 @@
@interface UIImage (Resize)
- (UIImage *)croppedImage:(CGRect)bounds;
- (UIImage *)thumbnailImage:(NSInteger)thumbnailSize
- transparentBorder:(NSUInteger)borderSize
interpolationQuality:(CGInterpolationQuality)quality;
- (UIImage *)resizedImage:(CGSize)newSize
interpolationQuality:(CGInterpolationQuality)quality;
View
@@ -31,7 +31,6 @@ - (UIImage *)croppedImage:(CGRect)bounds {
// Returns a copy of this image that is squared to the thumbnail size.
// If transparentBorder is non-zero, a transparent border of the given size will be added around the edges of the thumbnail. (Adding a transparent border of at least one pixel in size has the side-effect of antialiasing the edges of the image when rotating it using Core Animation.)
- (UIImage *)thumbnailImage:(NSInteger)thumbnailSize
- transparentBorder:(NSUInteger)borderSize
interpolationQuality:(CGInterpolationQuality)quality {
UIImage *resizedImage = [self resizedImageWithContentMode:UIViewContentModeScaleAspectFill
bounds:CGSizeMake(thumbnailSize, thumbnailSize)
@@ -46,9 +45,7 @@ - (UIImage *)thumbnailImage:(NSInteger)thumbnailSize
thumbnailSize);
UIImage *croppedImage = [resizedImage croppedImage:cropRect];
- UIImage *transparentBorderImage = borderSize ? [croppedImage transparentBorderImage:borderSize] : croppedImage;
-
- return transparentBorderImage;//[transparentBorderImage roundedCornerImage:cornerRadius borderSize:borderSize];
+ return croppedImage;//[transparentBorderImage roundedCornerImage:cornerRadius borderSize:borderSize];
}
// Returns a rescaled copy of the image, taking into account its orientation

0 comments on commit 7f10e6a

Please sign in to comment.