Re: Basic NSGraphicsContext question
Re: Basic NSGraphicsContext question
- Subject: Re: Basic NSGraphicsContext question
- From: Shawn Erickson <email@hidden>
- Date: Fri, 4 Jul 2003 14:48:26 -0700
On Friday, July 4, 2003, at 01:36 PM, Jim Crafton wrote:
First off I'll admit I am a complete newbie to OS X development (I am
coming from a Win32 background).
Is there a way to create an NSGraphicsContext from an image (I guess
similar to
CGCreateBitmapContext ?) to use for drawing, and then render the
contents of the NSGraphicsContext back to the one owned by a Window?
Is it possible to get the NSGraphicsContext that the NSImage uses ?
If not, is it possible to use the lower level Quartz 2D drawing API
and still integrate nicely with Cocoa ?
I was reading up on it, and Quartz has methods to create a bitmap GC,
which is precisely what I want. However I am not sure how this
corresponds to the Cocoa world.
We could be more helpful if we better understood what you are trying to
do, based on the above I am not sure how to answer your question.
Almost all image/path/drawing handling can be done using Cocoa so you
shouldn't need to drop down to Quartz 2D but you can if needed.
So what are you trying to do...?
-Shawn
_______________________________________________
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.