Re: Print a NSImageView
Re: Print a NSImageView
- Subject: Re: Print a NSImageView
- From: Jeff LaMarche <email@hidden>
- Date: Thu, 29 Dec 2005 12:45:25 -0500
On Dec 29, 2005, at 12:37 PM, Andrea Salomoni wrote:
Yes this is a way...
how can i create am offscreen nsimageview?
Just allocate and initialize it with an NSRect that defines your
printable area. This will create one in memory that is not shown to
the user, like so:
NSImageView *imageView = [[NSImageView alloc] initWithFrame:printRect];
[imageView setImage:[screenView image]];
Don't forget when you're done with it, to release it:
[imageView release];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden