UIImage(ADKImageFilter) Category Reference
| Declared in | UIImage+ADKImageFilter.h UIImage+ADKImageFilter.m |
|---|
+ ADKCaptureView:
Capture view’s screenshot.
+ (UIImage *)ADKCaptureView:(UIView *)viewParameters
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)rectParameters
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)maxLengthParameters
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)newSizeParameters
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)cropSizeParameters
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)cropRectParameters
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)radiusParameters
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 *)colorDiscussion
mask UIImage with UIColor
Declared In
UIImage+ADKImageFilter.m
– ADKOverlayWithTexture:
Overlay one texture with 70% tranparent on image.
- (UIImage *)ADKOverlayWithTexture:(UIImage *)textureImageParameters
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)transparentParameters
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 *)ADKBlackAndWhiteImageReturn Value
The instance of result UIImage.
Declared In
UIImage+ADKImageFilter.h