12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // UIImage+EaseUI.h
- // EaseIMKit
- //
- // Created by 杜洁鹏 on 2020/11/15.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface UIImage (UI)
- + (UIImage *)pb_imageNamed:(NSString *)name;
- + (UIImage *)createGradualColorImage:(CGSize)size
- startPoint:(CGPoint)start
- startColor:(UIColor *)startColor
- endPoint:(CGPoint)end
- endColor:(UIColor *)endColor;
- + (UIImage *)imageWithColor:(UIColor *)color;
- + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
- - (UIImage *)imageByResizeToSize:(CGSize)size;
- - (UIImage *)imageByTintColor:(UIColor *)color;
- - (UIImage *)imageByRoundCornerRadius:(CGFloat)radius;
- - (UIImage *)imageWithBackgroundColor:(UIColor *)backgroundColor
- cornerRadius:(CGFloat)cornerRadius
- contentSize:(CGSize)contentSize;
- @end
- NS_ASSUME_NONNULL_END
|