Files
featherVoice/TUIKit/TUIChat/CommonUI/Pop/UIImage+ImageEffects.h
2025-08-08 10:49:36 +08:00

31 lines
890 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 youll 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