| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thanks, Dmitry, that definitely solves one half of the problem. Let's see if someone can fill in the other_______________________________________________
half :-)
Thanks,
Ken
On Wednesday, October 2, 2002, at 04:44 PM, Dmitry Markman wrote:
I don't know about NSImage, but PICT to javaImage I probably can help you:
ImagePresenter ip = ImagePresenter.fromPict(pict);
QTImageProducer ip = new QTImageProducer(ip,size);
java.awt.Image javaImage = java.awt.Toolkit.getDefaultToolkit().createImage(ip);
and size is desirable size of your image
Dmitry Markman
On Wednesday, October 2, 2002, at 02:16 PM, Kenneth McDonald wrote:
I'm trying to do what I think should be a very simple thing--pull out the first frame of a movie file using Java and Quicktime, scale it to a thumbnail, and set it as the icon of that file.
I expected the hard part to be finding the calls necessary to get the image, scale it, and set a file icon. In fact, I seem to have identified necessary calls (I don't know if they're actually correct, but by their descriptions they seem to be :-) ). The real difficulty lies in the fact that I'm dealing with three different representations of images--PICT, NSImage, and Java images--and I cannot figure out how to translate between these formats. And of course, I can't find any documentation that refers to this sort of thing. It's this last point that really frustrates me, and if someone can point to any decent documentation concerning this, I'd be most grateful.
Thanks,
Ken
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.