• 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
Re: drawing pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing pixels


  • Subject: Re: drawing pixels
  • From: Wade Tregaskis <email@hidden>
  • Date: Mon, 22 Mar 2004 23:28:09 +1100

I want to draw pixels. You might not remember them, but we used to have
them in computer graphics. They are those small quadratic dots on your
screen. I know it sounds old-fashioned, but I really need to draw
those.

The other suggestion already posted may be simpler and more suitable for your needs, but if speed is important you could always create an NSBitmapImageRep as a buffer, and write directly into it (then copy it to the screen using on of NSImage's rendering methods). It's particularly easy if you create it yourself, since you can create a nice simple non-planar representation... if you're loading data from file and want to read pixel values, this method could potentially be a bit of a pain, with all the different possible formats (planar, bits per sample/pixel, etc).

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.


References: 
 >drawing pixels (From: Tobias Klüpfel <email@hidden>)
 >Re: drawing pixels (From: Bjoern Kriews <email@hidden>)

  • Prev by Date: Undo Manager
  • Next by Date: Re: Undo Manager
  • Previous by thread: Re: drawing pixels
  • Next by thread: FAQ: minor correction question 3.2.1
  • Index(es):
    • Date
    • Thread