Flood filing an NSImage
Flood filing an NSImage
- Subject: Flood filing an NSImage
- From: Matthew Smith <email@hidden>
- Date: Tue, 30 Apr 2002 13:42:27 +1000
Hello,
I'd like to apply some sort of flood fill on a pixel in my NSImage,
where it changes that pixel and every one adjacent to it (and adjacent
to them etc) to the colour that I am filling so long as all the changed
pixels are adjacent to each other and are the same RGB value...
I'm building my image up by combinations of loading images from the
disk, creating composite images and drawing various NSBezierPaths and
text on it.
I'd rather not recurse through the data structure and manually do the
change if I can help it...
Any suggestions would be great,
cheers
Matt Smith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.