FloodFill-Objective-C Simple to use: UIImageView* imageView = [[FloodFillImageView alloc] init]; UIImage *img = [UIImage imageWithData:UIImageJPEGRepresentation([UIImage imageNamed:@"test-flood-fill.png"], 1)]; [imageView setImage:img];