提交
This commit is contained in:
30
TUIKit/TUIChat/CommonUI/Pop/UIImage+ImageEffects.h
Normal file
30
TUIKit/TUIChat/CommonUI/Pop/UIImage+ImageEffects.h
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
// Created by Tencent on 2023/06/09.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
/*
|
||||
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
|
||||
Reference in New Issue
Block a user