Re: How to make an Offscreen NSGraphicsContext?
Re: How to make an Offscreen NSGraphicsContext?
- Subject: Re: How to make an Offscreen NSGraphicsContext?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 5 Feb 2002 13:29:12 -0800
On Tuesday, February 5, 2002, at 01:00 PM, Manfred Lippert wrote:
Hi,
is it possible to create an offscreen NSGraphicsContext?
Sure. Create an NSImage of the size you want, and send it a
-setDataRetained:YES message. It's a suitable target for
-lockfocus, just like an NSView.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Software Engineer, Cocoa Evangelism
Apple Worldwide Developer Relations
_______________________________________________
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.