UIImage+UI.h 956 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // UIImage+EaseUI.h
  3. // EaseIMKit
  4. //
  5. // Created by 杜洁鹏 on 2020/11/15.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface UIImage (UI)
  10. + (UIImage *)pb_imageNamed:(NSString *)name;
  11. + (UIImage *)createGradualColorImage:(CGSize)size
  12. startPoint:(CGPoint)start
  13. startColor:(UIColor *)startColor
  14. endPoint:(CGPoint)end
  15. endColor:(UIColor *)endColor;
  16. + (UIImage *)imageWithColor:(UIColor *)color;
  17. + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
  18. - (UIImage *)imageByResizeToSize:(CGSize)size;
  19. - (UIImage *)imageByTintColor:(UIColor *)color;
  20. - (UIImage *)imageByRoundCornerRadius:(CGFloat)radius;
  21. - (UIImage *)imageWithBackgroundColor:(UIColor *)backgroundColor
  22. cornerRadius:(CGFloat)cornerRadius
  23. contentSize:(CGSize)contentSize;
  24. @end
  25. NS_ASSUME_NONNULL_END