Re: drawing views to images
Re: drawing views to images
- Subject: Re: drawing views to images
- From: matt neuburg <email@hidden>
- Date: Tue, 22 Jul 2003 11:00:09 -0700
On Tue, 22 Jul 2003 07:20:42 -0700, Francisco Tolmasky
<email@hidden> said:
>
Is it possible to render a view to a an image? Something like:
>
>
NSImage *myViewImage= [[NSImage alloc] initWithSize:
>
NSMakeSize(10.0,10.0)];
>
[myViewImage lockFocus];
>
[myView drawRect: NSMakeRect(0.0,0.0,10.0,10.0)];
>
[myVIewImage unlockFocus];
Yes. m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.