I have a .PNG image (for example, an animal with a black outline) and I want to fill the gradient by tapping the iPad screen.
I follow the Apple manual here
http://developer.apple.com/library/ios/#documentation/2DDrawing/Conceptual/DrawingPrintingiOS/BezierPaths/BezierPaths.html
Following Apple Guide:
- (BOOL)containsPoint:(CGPoint)point onPath:(UIBezierPath *)path inFillArea: (BOOL)inFill { NSLog(@"contains point Path %@", path); NSLog(@"Touch point %f %f", point.x, point.y ); CGContextRef context = UIGraphicsGetCurrentContext(); CGPathRef cgPath = path.CGPath; BOOL isHit = NO;
I just want to know how I can use this method in my application.
Tell me, what are the steps for this?
I'm new to this, please help me ....
source share