//
//  UIImage+Common.h
//  XinMai
//
//  Created by mac on 2020/10/19.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Common)


/// 通过颜色生成图片
+ (UIImage *)dh_imageWithColor:(UIColor *)color size:(CGSize)size;

/// 圆角切割，高效的添加圆角图片
- (UIImage *)dh_getCornerRadius:(CGFloat)cornerRadius;

@end

NS_ASSUME_NONNULL_END
