Re: Function to write to one pixel?
Re: Function to write to one pixel?
- Subject: Re: Function to write to one pixel?
- From: Shawn Erickson <email@hidden>
- Date: Fri, 6 May 2005 16:21:16 -0700
On May 6, 2005, at 3:33 PM, Jean-Francois Roy wrote:
Technically speaking, Quartz (and therefore the entire Cocoa view
system) does not deal with pixels but rather with points in some
graphical context which defines, among other things, a certain
color space and transformation matrix (the CTM). In that regard,
Quartz is very different from QuickDraw or GDI (on Windows).
The correct way to draw "pixels" is to create a Quartz CGImage or a
Cocoa NSBitmapImageRep object (can be wrapped in an NSImage
object), which both represent a classic pixel storage memory buffer.
Another option, not knowing exactly what Dustin is attempting to do
or how many "pixels" he wants, is to fill rectangles that are 1 point
wide and 1 point height consider using NSRectFill, NSRectFillList,
and friends.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden