|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.parser.swf.ImageUtil
public class ImageUtil
Utilities for dealing with images
Field Summary | |
---|---|
private static ImageUtil |
_theInstance
|
Constructor Summary | |
---|---|
private |
ImageUtil()
|
Method Summary | |
---|---|
static Image.Lossless |
createLosslessImage(java.awt.Image image,
int format,
boolean hasAlpha)
Create a lossless Image object from an AWT Image - the awt image must be fully loaded and ready. |
static ImageUtil |
getInstance()
|
static byte[] |
normalizeJPEG(java.io.InputStream jpegImage,
int[] size2)
Normalize a JPEG to ensure that it is "Baseline" rather than "Progressive". |
static Shape |
shapeForImage(Image image,
double width,
double height)
Create a Shape for the image. |
static Shape |
shapeForImage(java.io.InputStream jpegImage,
int[] size2)
Create a Shape for the image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final ImageUtil _theInstance
Constructor Detail |
---|
private ImageUtil()
Method Detail |
---|
public static ImageUtil getInstance()
public static byte[] normalizeJPEG(java.io.InputStream jpegImage, int[] size2) throws java.io.IOException
size
- null or an int[2] to receive the (width,height)
of the imagejpegImage
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static Shape shapeForImage(java.io.InputStream jpegImage, int[] size2) throws java.io.IOException
size
- null or an int[2] to receive the (width,height)
of the imagejpegImage
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static Shape shapeForImage(Image image, double width, double height) throws java.io.IOException
image
- Description of the Parameterwidth
- Description of the Parameterheight
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static Image.Lossless createLosslessImage(java.awt.Image image, int format, boolean hasAlpha)
format
- one of: SWFConstants.BITMAP_FORMAT_8_BIT,
SWFConstants.BITMAP_FORMAT_16_BIT, SWFConstants.BITMAP_FORMAT_32_BITimage
- Description of the ParameterhasAlpha
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |