|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.tag.ImageHandling
public class ImageHandling
User: paul Date: 11-Dec-2008
Constructor Summary | |
---|---|
ImageHandling()
|
Method Summary | |
---|---|
static boolean |
isMimeTypeWritable(java.lang.String mimeType)
|
private static void |
makeSmaller(Artwork artwork,
int size)
Resize image using Java 2D |
static void |
reduceQuality(Artwork artwork,
int maxSize)
Resize the image until the total size require to store the image is less than maxsize |
static void |
showReadFormats()
Show read formats On Windows supports png/jpeg/bmp/gif |
static void |
showWriteFormats()
Show write formats On Windows supports png/jpeg/bmp |
static byte[] |
writeImage(java.awt.image.BufferedImage bi,
java.lang.String mimeType)
Write buffered image as required format |
static byte[] |
writeImageAsPng(java.awt.image.BufferedImage bi)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageHandling()
Method Detail |
---|
public static void reduceQuality(Artwork artwork, int maxSize) throws java.io.IOException
artwork
- maxSize
-
java.io.IOException
private static void makeSmaller(Artwork artwork, int size) throws java.io.IOException
artwork
- size
-
java.io.IOException
public static boolean isMimeTypeWritable(java.lang.String mimeType)
public static byte[] writeImage(java.awt.image.BufferedImage bi, java.lang.String mimeType) throws java.io.IOException
bi
- mimeType
-
java.io.IOException
public static byte[] writeImageAsPng(java.awt.image.BufferedImage bi) throws java.io.IOException
bi
-
java.io.IOException
public static void showReadFormats()
public static void showWriteFormats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |