Drawing UIImage into CurrentContext?

I have done this but stuck at another problem...here is your solution.

I have done this but stuck at another problem...here is your solution... - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { // Dismiss the image selection, hide the picker and //show the image view with the picked image picker dismissModalViewControllerAnimated:YES; imagePickerController.view. ImagePickerController release; imageView. Image = image; imageView.

ImageView setFrame:CGRectMake(0, 20, 320, 396); window bringSubviewToFront:imageView; } then - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = touches anyObject; if (touch view == EditImageView) { lastPoint = currentPoint; lastPoint = touch locationInView:self. View; UIGraphicsBeginImageContext(EditImageView.frame. Size); EditImageView.

Image drawInRect:CGRectMake(0, 0, EditImageView.frame.size. Width, EditImageView.frame.size. Height); //sets the style for the endpoints of lines drawn in a graphics context ctx = UIGraphicsGetCurrentContext(); CGContextSetLineCap(ctx, kCGLineCapRound); //sets the line width for a graphic context CGContextSetLineWidth(ctx,10.0); //set the line colour CGContextSetRGBStrokeColor(ctx, 1.0, 0.0, 0.0, 1.0); //creates a new empty path in a graphics context CGContextBeginPath(ctx); CGContextSetAllowsAntialiasing(ctx,TRUE); //begin a new path at the point you specify CGContextMoveToPoint(ctx, currentPoint.

X, currentPoint. Y); //Appends a straight line segment from the current point to the provided point CGContextAddLineToPoint(ctx, lastPoint. X,lastPoint.

Y); //paints a line along the current path CGContextStrokePath(ctx); EditImageView. Image = UIGraphicsGetImageFromCurrentImageContext(); EditImageView setNeedsDisplay; CGContextSaveGState(ctx); UIGraphicsEndImageContext(); currentPoint = lastPoint; } } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = touches anyObject; if (touch view == EditImageView) { currentPoint=touch locationInView:self. View; } } where currentPoint and lastPoint are CGPoint Declared in Header File.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions