Re: creating an NSImage from an NSView
Re: creating an NSImage from an NSView
- Subject: Re: creating an NSImage from an NSView
- From: Philippe Mougin <email@hidden>
- Date: Tue, 7 Jan 2003 16:13:09 +0100
> Hello,
>
> how can I make an NSImage from an NSView?
>
> thanks,
> Ben
A handy (but slow) way is:
NSImage *myImage = [[NSImage alloc] initWith
Data:[myView
dataWithPDFInsideRect:[myView bounds]]];
where myView is your view :-)
Phil
_______________________________________________
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.