• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Print a NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Print a NSImageView (From: Andrea Salomoni <email@hidden>)
 >Re: Print a NSImageView (From: Jeff LaMarche <email@hidden>)
 >Re: Print a NSImageView (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: Print a NSImageView
  • Next by Date: Correcting Misspelling in nib and source
  • Previous by thread: Re: Print a NSImageView
  • Next by thread: Correcting Misspelling in nib and source
  • Index(es):
    • Date
    • Thread