123456789101112131415161718 |
- //
- // UIView+ScreenShot.h
- // shiku_im
- //
- // Created by Apple on 16/12/7.
- // Copyright © 2016年 Reese. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UIView (ScreenShot)
- - (UIImage *)screenshot;
- - (UIImage *)screenshotWithRect:(CGRect)rect;
- - (UIImage *)snapshot:(UIView *)view;
- - (UIImage *)viewSnapshot:(UIView *)view withInRect:(CGRect)rect;
- //-(UIImage*) OriginImage:(UIImage *)image scaleToSize:(CGSize)size;
- + (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
- @end
|