|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jim2mov.utils.MovieUtils
public abstract class MovieUtils
Utility class to help in the creation of some media classes.
Constructor Summary | |
---|---|
MovieUtils()
|
Method Summary | |
---|---|
static byte[] |
bufferedImageToJPEG(java.awt.image.BufferedImage img,
float quality)
Converts a buffered image to a JPEG image |
static byte[] |
convertImageToJPEG(java.io.File originalImage,
float quality)
converts an image to JPEG |
static javax.media.MediaLocator |
createMediaLocator(java.lang.String url)
Create a media locator from the given location. |
static byte[] |
int32RGBBufferedImageToByteArray(java.awt.image.BufferedImage img)
Converts a standard 32 bit/pixel RGB image into a byte array |
static byte[] |
loadImageAs32bitRGB(java.io.File imageLoc)
Tries to load an image as a 32 bit RGB image... |
static byte[] |
loadImageFile(java.io.File imageLoc)
Loads a file using the standard Java IO classes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MovieUtils()
Method Detail |
---|
public static javax.media.MediaLocator createMediaLocator(java.lang.String url)
url
- The location of the place where the media will be writen.
public static byte[] loadImageFile(java.io.File imageLoc) throws java.io.IOException
imageLoc
- The location of the file
java.io.IOException
- If some error occurs while reading the filepublic static byte[] convertImageToJPEG(java.io.File originalImage, float quality) throws java.io.IOException
originalImage
- The location of the imagequality
- The quality of the jpeg output
java.io.IOException
- If some error occurs while reading the imagepublic static byte[] loadImageAs32bitRGB(java.io.File imageLoc) throws java.io.IOException
imageLoc
- The location of the image
java.io.IOException
- If some error occurspublic static byte[] bufferedImageToJPEG(java.awt.image.BufferedImage img, float quality) throws java.io.IOException
img
- The image to convertquality
- The quality of the output
java.io.IOException
- If some IO error occurspublic static byte[] int32RGBBufferedImageToByteArray(java.awt.image.BufferedImage img)
img
- The image to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |