Quote:
Originally Posted by Sketchiie
Please, I really need some help.
|
Hi sir here also same problem.i have selected the one image from albums or take picture from cam and editing the selected image with another image with touches/zooming/scaling and save the same as editing image....how can solve.please sir help me
-(IBaction)done
{
UIGraphicsBeginImageContext(imageView.image.size);
CGRect rect1 = CGRectMake(0,0
maskimage.image.size.width , maskimage.image.size.height);
NSLog(@"net translation are %f,%f",netTranslation.x/translation.x,netTranslation.y/translation.y);
CGRect rect = CGRectMake(0,0, imageView.image.size.width, imageView.image.size.height);
[imageView.image drawInRect:rect];
[maskimage.image drawInRect:rect1];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[editingimage setImage:resultingImage];
[editingimage setTransform:CGAffineTransformMakeScale(1, 1)];
[myview addSubview:editingimage];
[self.view addSubview:myview];
}
Thanking you sir