UIImage+Extension.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // UIImage+Extension.h
  3. // knowledgeBase
  4. //
  5. // Created by 王洪亮 on 16/9/20.
  6. // Copyright © 2016年 wanghongliang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <objc/runtime.h>
  10. #import <QuartzCore/QuartzCore.h>
  11. #import <Accelerate/Accelerate.h>
  12. @interface UIImage (Extension)
  13. - (UIImage *)fixOrientation;
  14. /**
  15. 通过颜色生成图片
  16. @param color color description
  17. @param alpha alpha description
  18. @return return value description
  19. */
  20. + (UIImage *)imageWithBgColor:(UIColor *)color alpha:(CGFloat)alpha;
  21. /**
  22. 旋转图片
  23. @return return value description
  24. */
  25. - (UIImage *)horTransform;
  26. /**
  27. 圆角图片
  28. @param radius radius description
  29. @param size size description
  30. @return return value description
  31. */
  32. - (UIImage*)imageAddCornerWithRadius:(CGFloat)radius andSize:(CGSize)size;
  33. + (UIImage *)boxblurImageWithBlur:(CGFloat)blur andImage:(UIImage *)image;
  34. - (UIImage *)imageByBlurRadius:(CGFloat)blurRadius
  35. tintColor:(UIColor *)tintColor
  36. tintMode:(CGBlendMode)tintBlendMode
  37. saturation:(CGFloat)saturation
  38. maskImage:(UIImage *)maskImage;
  39. + (UIImage *)originImageWithName:(NSString *)name ;
  40. - (UIImage *)circleImage;
  41. @end