Version: 1.2

Posted: 2006-05-05

Build Requirements: XCode 2.2, or Java 2 SDK for Windows, and QuickTime 7

Runtime Requirements: Java 1.5 and QuickTime 7, or later, recommended

View Source Code:

Download Sample (“ImageProducing.zip”, 212.0K)
Download Sample (“ImageProducing.dmg”, 272.0K)



Description

Demonstrates the QTImageProducer and interaction with Java's ImageProducing model. The QTImageProducer is responsible for getting the QT movie and producing the pixels for a java.awt.Image. The QTImageProducer feeds the pixels to any java.image.ImageConsumers, that are registered with it and, in a format that they are able to deal with. Swing buttons control the movie playback.

The IPJComponent, a convenience class, is provided as an example of this interaction for creating a custom JComponent. The QTImageProducer can be used directly by any of Java's built in ImageConsumers (such as the java.awt.Component). It demonstrates how the QTImageProducer can be used directly as a pixel resource for a swing component.

To achieve this, the IPJComponent creates the Image and tells the QTImageProducer object to produce pixels. Then, the IPJComponent paints its image onto the component space using the java drawing commands. In this scenario QuickTime is not drawing directly to the screen.

Document Revision History

Date Notes
2006-05-05Support for XCode 2. Modified project layout for platform independent distribution and compilation.
2003-01-14Demonstrates how to display any QuickTime drawing object using Java's ImageProducing model.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.