UIView+ScreenShot.h 505 B

123456789101112131415161718
  1. //
  2. // UIView+ScreenShot.h
  3. // shiku_im
  4. //
  5. // Created by Apple on 16/12/7.
  6. // Copyright © 2016年 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIView (ScreenShot)
  10. - (UIImage *)screenshot;
  11. - (UIImage *)screenshotWithRect:(CGRect)rect;
  12. - (UIImage *)snapshot:(UIView *)view;
  13. - (UIImage *)viewSnapshot:(UIView *)view withInRect:(CGRect)rect;
  14. //-(UIImage*) OriginImage:(UIImage *)image scaleToSize:(CGSize)size;
  15. + (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
  16. @end