Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: get a picture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get a picture



Chris is too modest. :)

There are many ways that almost work, but not necessarily on OSX. The examples in Chris's book in Chapter 5 works really well for creating a Java image on both platforms. Adding the write to jpg code is then pretty simple.

(Quicktime for Java: A developer's Notebook, by Chris Adamson)

And no he didn't pay me to say this... instead, this code let me solve a bug that irked me for several months. I can't say thanks enough!

Laura

At 03:18 PM 2/10/2005, you wrote:
On Feb 10, 2005, at 2:58 PM, Jose Alfonso Morquecho Paniagua wrote:

I need to get a picture (in jpg, gif, etc) form a qt-movie, can you
help me.

Would you accept a Pict?

        myMovie.getPict().writeToFile (new java.io.File ("moviepict.pict"));

To go to gif, jpeg, etc., you'll need to feed the Pict to a GraphicsExporter. As always, there are other ways too.

--Chris


_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >get a picture (From: Jose Alfonso Morquecho Paniagua <email@hidden>)
 >Re: get a picture (From: Chris Adamson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.