I am successfully able to draw on UIView
e.g. drawScreen
with
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
I have added my UIImageView
as subview of above UIView
e.g. drawScreen
so that it looks you are drawing over the image.
Now i want to save image with drawing, i have also done this part using
UIGraphicsBeginImageContext(CGSizeMake(drawScreen.frame.size.width, drawScreen.frame.size.height));
Problem:
The problem is that the resulted save image is of size drawScreen
and my original image is of good quality.
e.g,
size of drawScreen
is 300x300
The size of my original image is 640x640
The size of resulted image is also 300x300.
How can i save original size image with editing?