UIImage+bioAuth.h 904 B

123456789101112131415161718192021222324252627
  1. //
  2. // UIImage+bioAuth.h
  3. // BioAuthEngine
  4. //
  5. // Created by 王伟伟 on 2017/8/23.
  6. // Copyright © 2017年 DTF. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <CoreMedia/CoreMedia.h>
  10. @interface UIImage (bioAuth)
  11. + (nullable UIImage *)bioAuth_imageWithColor:(UIColor *_Nullable)color size:(CGSize)size;
  12. #pragma mark - Resize -
  13. - (nullable UIImage *)resize:(CGSize)sz;
  14. - (nullable UIImage *)subRect:(CGRect)r;
  15. - (nullable UIImage *)gaussiamBlur;
  16. - (nullable UIImage *)bioAuth_Resize:(CGSize)sz;
  17. - (nullable UIImage *)bioAuth_SubRect:(CGRect)r;
  18. - (nullable UIImage *)bioAuth_GaussiamBlur;
  19. + (nullable UIImage *)bioAuth_imageWithCVPixelBuffer:(CVPixelBufferRef _Nullable )buffer;
  20. + (nullable UIImage *)bioAuth_imageWithCMSampleBuffer:(CMSampleBufferRef _Nullable )samplebuffer;
  21. - (nullable UIImage *)bioAuth_imageByResizeToSize:(CGSize)size contentMode:(UIViewContentMode)contentMode;
  22. @end