摘要:
欢迎关注简书iOS藏经阁 阅读全文
摘要:
#import "ViewController.h" @interface ViewController () @property (nonatomic, assign) CGPoint startP; @property (weak, nonatomic) IBOutlet UIImageView 阅读全文
摘要:
+ (UIImage *)imageWithCaputureView:(UIView *)view { // 开启位图上下文 UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0); // 获取上下文 CGContextRef 阅读全文
摘要:
- (void)clipImage { // 0.加载图片 UIImage *image = [UIImage imageNamed:@"阿狸头像"]; // 1.开启位图上下文,跟图片尺寸一样大 UIGraphicsBeginImageContextWithOptions(image.size, 阅读全文