Re: Thumbnail from QT Movie?
Re: Thumbnail from QT Movie?
- Subject: Re: Thumbnail from QT Movie?
- From: Eric Brunstad <email@hidden>
- Date: Fri, 10 Jun 2005 16:17:10 -0400
Hi,
On Jun 10, 2005, at 9:13 AM, Julian wrote:
Hi,
In my application I need a simple solution for grabbing the key
frame or some other frame of a QT Movie and turn that into a
thumbnail tiffRepresentation. Before stepping through the QT api
and doing this from scratch I thought I would see if anyone had
done this and had a sample code.
Thanks
~J
Don't be scared of the QTKit, it's not too bad.
You'll want to do something like this:
- (NSData*) TIFFRepresentationFromMovie:(QTMovie *)mov
{
NSImage *img;
img = [mov posterImage];
NSData *rep = [img TIFFRepresentation];
return rep;
}
Disclaimer: This code was written right in Mail.app; it is not tested.
Eric Brunstad
Mind Sprockets Software
email@hidden
www.mindsprockets.com
_______________________________________________
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