Commit ce45f120 authored by sunzheng's avatar sunzheng
parents 1fd68cdf fcb17876
......@@ -442,16 +442,6 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
dispatch_async(dispatch_get_main_queue(), ^{
if ([weakSelf.delegate respondsToSelector:@selector(lf_PhotoEditingController:didFinishPhotoEdit:)]) {
[weakSelf.delegate lf_PhotoEditingController:self didFinishPhotoEdit:photoEdit];
NSData *data = [Utils imageData:photoEdit.editPreviewImage];
NSLog(@"编辑图片-------编辑后的大小:%.2f", (double)data.length / 1024 / 1024);
if(photoEdit) {
NSString *path = [NSString stringWithFormat:@"file://%@",[Utils saveImageTosandBox:data]];
[self.data[@"images"][self.index] setObject:path forKey:@"editedImage"];
}
self.finishBlock(photoEdit, self.data);
}
[weakSelf hideProgressHUD];
});
......
......@@ -109,6 +109,7 @@ NSString *const kLFDrawViewData = @"LFDrawViewData";
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self];
//设置线宽
path.lineWidth = self.lineWidth;
path.lineCapStyle = kCGLineCapRound; //线条拐角
path.lineJoinStyle = kCGLineJoinRound; //终点处理
[path moveToPoint:point];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment