mirror of
https://github.com/TencentCloud/TIMSDK.git
synced 2026-10-23 18:09:03 +08:00
26 lines
744 B
Objective-C
Executable File
26 lines
744 B
Objective-C
Executable File
/*
|
||
File: UIImage+ImageEffects.h
|
||
Abstract: This is a category of UIImage that adds methods to apply blur and tint effects to an image. This is the code you’ll want to look out to find out how to use vImage to efficiently calculate a blur.
|
||
Version: 1.0
|
||
*/
|
||
|
||
@import UIKit;
|
||
|
||
@interface UIImage (ImageEffects)
|
||
|
||
- (UIImage *)applyLightEffect;
|
||
- (UIImage *)applyExtraLightEffect;
|
||
- (UIImage *)applyDarkEffect;
|
||
- (UIImage *)applyTintEffectWithColor:(UIColor *)tintColor;
|
||
|
||
- (UIImage *)applyBlurWithRadius:(CGFloat)blurRadius tintColor:(UIColor *)tintColor saturationDeltaFactor:(CGFloat)saturationDeltaFactor maskImage:(UIImage *)maskImage;
|
||
|
||
@end
|
||
|
||
@interface UIImage (SnapshotImage)
|
||
|
||
+ (UIImage *)snapshotImageWithView:(UIView *)view;
|
||
|
||
@end
|
||
|