Hello
I'm a begginer developing apps for Iphone and was wondering if is possible to do the following:
I have an image .png wich is a simple draw of a figure bounded with black edges and empty areas. I wonder if there is a method or a mode to fill the closed empty areas of the image.
Its like as the pot of MSpaint filling.
I have this code:
CGContextRef ctx = UIGraphicsGetCurrentContext();
UIImage *image = [UIImage imageNamed:@"myImage.png"];
CGContextDrawImage(context, CGRectMake(0, 0, 145, 15), image.CGImage);
[image drawInRect:CGRectMake(0, 0, 145, 15)];
Now i don't know what to do to fill...
I'll be very grateful if someone can answer this question. Thank you very much!