NSImage from NSMovieView problems
NSImage from NSMovieView problems
- Subject: NSImage from NSMovieView problems
- From: Lee Morgan <email@hidden>
- Date: Thu, 4 Dec 2003 20:16:27 -0500
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] initWith
Data: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?
Lee Morgan
_______________________________________________
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.