Re: NSImage from NSMovieView problems
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.