Re: Function to write to one pixel?
Re: Function to write to one pixel?
- Subject: Re: Function to write to one pixel?
- From: j o a r <email@hidden>
- Date: Fri, 6 May 2005 10:30:28 +0200
On 6 maj 2005, at 08.56, Dustin Robert Kick wrote:
Shouldn't the code to paint a single pixel be the "NSPoint p1 =
NSMakePoint(X(f),Y(f));" sections of code, which were the
variations I tried, that didn't work. If not, what does
NSMakePoint do?
It creates a NSPoint struct - it's in no way a drawing operation...
, and where do I find a function to paint a single pixel to the
screen?
The Cocoa drawing model is centered around view objects. Drawing "to
the screen" isn't really something that makes sense in Cocoa and
Quartz. A NSView object is responsible for managing drawing inside
it's frame, and that's done in the context of it's window.
In the sample code you quoted, drawing is performed by the
NSRectFill, and strokeLineFromPoint: operations.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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