• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Flood filing an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSBezierPath to NSImage?
  • Next by Date: Re: Removing HTML Tags
  • Previous by thread: Re: NSBezierPath to NSImage?
  • Next by thread: DOCK: CFMessagePortSendRequest returned (-1|-2)
  • Index(es):
    • Date
    • Thread