Re: drawing pixels
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.