• 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
Drawing Pixels with NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing Pixels with NSBezierPath


  • Subject: Drawing Pixels with NSBezierPath
  • From: "Christopher O'Neill" <email@hidden>
  • Date: Sat, 3 Jul 2004 11:34:59 -0700

Hi all. The program I am writing requires a view to be drawn with every pixel being a different color. The only way I can see to do it is to create a new 1x1 NSRect and draw them to their correct locations. However, this takes a long time to draw. It constantly has to be redrawn as one pixel changes color with every click of the mouse. I have increased speed dramatically by splitting it up into smaller subviews and only updating the ones that need updating, but sometimes every pixel needs to be changed, so it will again take a long time to update. Is there a faster way to do it that I have not seen, possibly by drawing an array of colors at one pixel each? Any help is appreciated. _______________________________________________
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.


  • Follow-Ups:
    • Re: Drawing Pixels with NSBezierPath
      • From: Shaun Wexler <email@hidden>
    • Re: Drawing Pixels with NSBezierPath
      • From: John Randolph <email@hidden>
    • Re: Drawing Pixels with NSBezierPath
      • From: Chris Hanson <email@hidden>
    • Re: Drawing Pixels with NSBezierPath
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Problem with custom cell not gaining key focus
  • Next by Date: Misc questions
  • Previous by thread: Problem with custom cell not gaining key focus
  • Next by thread: Re: Drawing Pixels with NSBezierPath
  • Index(es):
    • Date
    • Thread