| Sign In/My Account | View Cart |
| Article: |
Making Media from Scratch, Part 2 | |
| Subject: | Is it still possible to write to QTJava from java on the Mac? | |
| Date: | 2004-09-16 02:56:19 | |
| From: | skye | |
|
hi, you mention using the QTImageDrawer to write java graphics to movies, but it seems to be deprecated in QTJ6.1, along with, it seems, every other class for moving an image drawn in java into QT under 1.4.1. Apple provides an examplein the 6.1 SDK, but it uses QTCanvas and ImageDrawer (both deprecated) and won't compile. Do we have to pass byte arrays, or am I missing something?
|
||
Showing messages 1 through 1 of 1.
Is it still possible to write to QTJava from java on the Mac?
Some workarounds: 1. use the Swing-based QTJComponent and put it in a JLayeredPane to draw on top of the movie, 2. set up a MovieDrawingComplete object to draw on top of each rendered frame (icky: you have to use QuickDraw calls and it ends up flickery anyways), 3. add a new video track to your movie, draw raw frames (samples) with QuickDraw commands, and use setLayer() and GraphicsModes to put it on top of the existing video track, 4. same as 3, but with sprites [kind of re-creating the QTImageDrawer]
--Chris