Re: Help with offscreen drawing
Re: Help with offscreen drawing
- Subject: Re: Help with offscreen drawing
- From: Keith Renz <email@hidden>
- Date: Thu, 15 Aug 2002 10:26:37 -0400
In theory, I want to re-use offscreen windows (I will not release them) to
draw a similar, but slightly different image. I will then overlay the views
and convert the superview into a PDF image. I will then use the various
images for a table column's cell. The table's data source object will return
images. The test works well with an onscreen window, but for some reason it's
not working with an offscreen window.
Keith
-----
On 8/15/02, 9:38 AM, Jan Van Boghout <email@hidden> wrote:
>
Why do you use an offscreen window for that? I've only just started
>
exploring this myself, but I just use something like the following:
>
>
NSImage *anImage;
>
>
[anImage lockFocus];
>
//do NSBezierpath stuff here
>
[anImage unlockFocus];
>
>
Works for me, I haven't encountered any problems with it.
>
>
Jan
_______________________________________________
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.