Re: Function to write to one pixel?
Re: Function to write to one pixel?
- Subject: Re: Function to write to one pixel?
- From: Dustin Robert Kick <email@hidden>
- Date: Fri, 6 May 2005 18:34:38 -0500
How can you create, for example, a pattern of crosshatched pixels,
with nothing behind them in the other pixels (though this is probably
a different topic), this was one thing I was thinking of doing with
painting single pixels. ( Paint a pattern of crosshatches over
another picture so that both would show up ). But in particular, I
was trying to paint a single pixel in the middle of concentric
circles, and couldn't find the function, which I found to be odd.
Dustin Kick
On May 6, 2005, at 6:21 PM, Shawn Erickson wrote:
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