UIImage(ADKImageFilter) Category Reference
Declared in | UIImage+ADKImageFilter.h UIImage+ADKImageFilter.m |
---|
+ ADKCaptureView:
Capture view’s screenshot.
+ (UIImage *)ADKCaptureView:(UIView *)view
Parameters
view |
The view need to capture. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
+ ADKCaptureView:withFrame:
Capture view and crop it with target rect as an image
+ (UIImage *)ADKCaptureView:(UIView *)view withFrame:(CGRect)rect
Parameters
view |
The view will be captured. |
---|---|
rect |
Rect in view will be cropped. |
Return Value
Snapshot image of cropped view
Declared In
UIImage+ADKImageFilter.h
– ADKResizeByMaxLength:
Resize image’s size to max length in proportion.
- (UIImage *)ADKResizeByMaxLength:(NSInteger)maxLength
Parameters
maxLength |
The value of max image length with NSInteger. The unit is pt. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKScaleToSize:
Resize image’s size to specific size.
- (UIImage *)ADKScaleToSize:(CGSize)newSize
Parameters
newSize |
The size of expected new image. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKCropSize:
Crop image’s to assign size.
- (UIImage *)ADKCropSize:(CGSize)cropSize
Parameters
cropSize |
The value of crop size with CGSize. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKCropRect:
Crop image’s to assign rectangle.
- (UIImage *)ADKCropRect:(CGRect)cropRect
Parameters
cropRect |
The value of crop rectangle with CGRect. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKGaussianBlurWithRadius:
Apply gaussian blur effect on image.
- (UIImage *)ADKGaussianBlurWithRadius:(NSInteger)radius
Parameters
radius |
The value of NSInteger. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKMaskImageWithColor:
mask UIImage with UIColor
- (UIImage *)ADKMaskImageWithColor:(UIColor *)color
Discussion
mask UIImage with UIColor
Declared In
UIImage+ADKImageFilter.m
– ADKOverlayWithTexture:
Overlay one texture with 70% tranparent on image.
- (UIImage *)ADKOverlayWithTexture:(UIImage *)textureImage
Parameters
textureImage |
The UIImage of overlay texture. |
---|
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKOverlayWithTexture:transparent:
Overlay one texture on image.
- (UIImage *)ADKOverlayWithTexture:(UIImage *)textureImage transparent:(CGFloat)transparent
Parameters
textureImage |
The UIImage of overlay texture. |
---|---|
transparent |
The transparent value of overlay texture. (0.0f ~ 1.0f) |
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h
– ADKBlackAndWhiteImage
Apply black & white effect on image.
- (UIImage *)ADKBlackAndWhiteImage
Return Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h