• 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: NSImage from NSMovieView problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage from NSMovieView problems


  • Subject: Re: NSImage from NSMovieView problems
  • From: Vince DeMarco <email@hidden>
  • Date: Thu, 4 Dec 2003 17:28:15 -0800

On Dec 4, 2003, at 5:16 PM, Lee Morgan wrote:

Hi all, I'm having problems getting a NSImage from a hidden NSMovieView.
I've tried...

NSData *tempData = [movieView dataWithPDFInsideRect:[movieView bounds]];
NSImage *tempImage = [[NSImage alloc] initWithData:tempData];

But I end up with what seems like the coordinate system being off (that is it takes a image from up and right of the movieView - only getting about 1 quarter of the view itself. I've tried converting the rect using NSView's convertRect:fromView but then I end up with what seems like the right coordinate system but only the right half of the movie view is getting draw into the image for some reason.

I'm not certain this is the way I need to be doing this to being with, I really just need a NSImage (PDF would be nice but just about any rep will work). The problem I get into is that I have to be able to get the image from the view while the view is hidden. I've also tried creating a blank NSImage and then locking the focus to in and drawing the movie view into it that way but no contents get put into the image that way.

Any help?


There is code to do this on your machine look at

/Developer/Examples/InterfaceBuilder/bMoviePalette

vince
_______________________________________________
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.

References: 
 >NSImage from NSMovieView problems (From: Lee Morgan <email@hidden>)

  • Prev by Date: Note from your listmom, re: Macintosh Products Guide
  • Next by Date: NSApplication Newbie
  • Previous by thread: NSImage from NSMovieView problems
  • Next by thread: Automatic format of "time remaining" messages
  • Index(es):
    • Date
    • Thread