Media Section Index | Page 4
What audio formats do Java Sound and/or the Java Media Framework support?
Supported Java Sound formats are outlined in the Java Sound FAQ.
The Java Media Framework (JMF) builds on top of the Java Sound engine and APIs. JMF provides support for quite a few additional ...more
How can I get an Image's resolution (dpi)?
A (Java) image does not have a resolution so it is not possible to get the resolution of an image.
Resolution (dpi) is not really an attribute of an image. An image is
simply a rectangle of pixel...more
Will Java 3D replace VRML?
Java 3D will not replace VRML. In fact, the two are
largely complementary. VRML is predominantly a standard
file format for 3D data for the Web, while Java 3D is
predominantly a 3D gra...more
Can I capture video input from a video camera using Java?
Yes, you can use the capture functionality in the Java Media Framework (JMF) to capture a video stream from an attached video camera.
For more information, please refer to the JMF spec and docu...more
How can I save a graphics object into a bitmap or vector file format (such as a GIF or WMF) using Java 2D?
Some support for JPEG streams is provided in Java 2
via Java 2D, but not as a core platform API. JPEG
is supported via the com.sun.image.codec.jpeg package. JPEG
streams can in turn be ...more
Are there any MPEG encoders written in Java?
The specifications for MPEG codecs are asymmetric. That is
to say, it takes much more work to encode an MPEG bitstream
than it does to decode it. This is by design, so that decoders
can...more
How can I take snapshots of Java components and save them into image files?
Java 2D's BufferedImages and Sun's JPEG encoder package make
short work of this. In order to save snapshots from
java.awt.Components into JPEG files, you simply:
Create a BufferedImage ...more
Where can I find more information about Java image manipulation and processing?
Check out Jonathan Knudsen's columns on
java.oreilly.com plus the archive of my Media Programming
JavaWorld columns at:
www.javaworld.com/javaworld/topicalindex/jw-ti-media.html
I...more
Is it possible to reduce the size of an image with Java? (I want to create thrumbnails on an image.)
Yes. Use a BufferedImage to retrieve the image and an AffineTransform to scale it. Here is some example code:
public class Thumbnail extends ImageIcon {
public Thumbnail(ImageIcon original...more
How can I create a grayscale image from a color image?
BufferedImage is a powerful new capability provided by
Java 2. You can use the BufferedImage to access the
pixel-by-pixel RGB information to decide if the pixels
fall within some arbitr...more
How can I produce a fade-out or fade-in image effect?
You can fade an image using a Java 2D convolve operation akin
to the edge detection discussed in my JavaWorld column,
"Image processing with Java 2D", at:
www.javaworld.com/jw-...more
Is it possible to save a modified Java 3D scene graph back into a VRML .wrl file?
I am not aware of a Java 3D scene graph-to-VRML file
exporter, though something should conceivably be
possible to write (I think...not having done it yet
myself). You should be able to ...more
Where can I get the javax.vecmath package?
The vector math optional package is currently only included
with Java 3D implementations, although vector math
support is certainly useful for other applications besides 3D apps.
Download Java...more
Are there any books about the Java Media Framework?
Yes:
Core Java Media Framework
Essential JMF: Java Media Framework
Programming with the Java Media Framework
more
I need to have streaming audio in JAVA. Where is a good place to start investigating how to do this?
I have written several articles for JavaWorld magazine on
the Java Media APIs including some on the Java Media Framework
(JMF), which enables streaming audio (and video, and other
things) in Java...more