UIImage+Extend.h 447 B

1234567891011121314151617181920
  1. //
  2. // UIImage+Extend.h
  3. // BankCard
  4. //
  5. // Created by XAYQ-FanXL on 16/7/8.
  6. // Copyright © 2016年 AN. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. @interface UIImage (Extend)
  11. + (UIImage *)imageFromSampleBuffer:(CMSampleBufferRef)sampleBuffer;
  12. + (UIImage *)getImageStream:(CVImageBufferRef)imageBuffer;
  13. + (UIImage *)getSubImage:(CGRect)rect inImage:(UIImage*)image;
  14. -(UIImage *)originalImage;
  15. @end