com.ontimize.dms.thumbnail.extractors
Class BasicExtractor
java.lang.Object
com.ontimize.dms.thumbnail.extractors.BasicExtractor
- All Implemented Interfaces:
- Extractor
- Direct Known Subclasses:
- JAIImageExtractor, PDFRendererExtractor, TextImageExtractor
public abstract class BasicExtractor
- extends java.lang.Object
- implements Extractor
|
Method Summary |
static byte[] |
compress(java.awt.image.BufferedImage image,
int quality)
|
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage image,
java.awt.Dimension dimension,
boolean aspectRatio)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIN_QUALITY
protected static int MIN_QUALITY
MAX_QUALITY
protected static int MAX_QUALITY
BasicExtractor
public BasicExtractor()
resize
public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image,
java.awt.Dimension dimension,
boolean aspectRatio)
compress
public static byte[] compress(java.awt.image.BufferedImage image,
int quality)
throws java.io.IOException
- Throws:
java.io.IOException