Re: creating an NSImage from an NSMovie
Re: creating an NSImage from an NSMovie
- Subject: Re: creating an NSImage from an NSMovie
- From: Public Look <email@hidden>
- Date: Mon, 16 Feb 2004 16:29:58 -0500
On Feb 16, 2004, at 4:10 PM, Benjamin Salanki wrote:
Hi,
I would like to create an NSImage from one single frame of an NSMovie.
could anyone point me in the right direction please?
thx,
Ben
Apple's sample at
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/
OpenGL_Movie.htm does exactly what you want. It renders each frame of
a movie into an image (texture) which is then drawn with OpenGL. You
can skip the OpenGL part and just use the image data to initialize an
NSBitmapImageRep. See other samples for how to initialize an
NSBitmapImageRep with image data and associate the rep with an NSImage.
_______________________________________________
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.