org.shiftone.memento.util
Class ImageUtil
java.lang.Object
org.shiftone.memento.util.ImageUtil
- All Implemented Interfaces:
- java.awt.image.ImageObserver
- public class ImageUtil
- extends java.lang.Object
- implements java.awt.image.ImageObserver
Class ImageUtil
- Author:
- Neville Kadwa
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
static java.awt.Image |
fixPreview(java.io.File file,
java.awt.Image preview,
java.awt.image.ImageObserver observer)
|
static java.util.Date |
getImageDate(java.io.File file)
Method getImageDate |
static java.awt.Image |
getPreviewImage(java.io.File file,
java.awt.image.ImageObserver observer)
Method getPreviewImage |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.log4j.Logger LOG
PREVIEW_IMAGE_WIDTH
public static final int PREVIEW_IMAGE_WIDTH
- See Also:
- Constant Field Values
PREVIEW_IMAGE_HEIGHT
public static final int PREVIEW_IMAGE_HEIGHT
- See Also:
- Constant Field Values
CREATION_EXIF_CODE
public static final int CREATION_EXIF_CODE
- See Also:
- Constant Field Values
LAST_MOD_EXIF_CODE
public static final int LAST_MOD_EXIF_CODE
- See Also:
- Constant Field Values
EXIF_DATE_FORMAT
public static final java.lang.String EXIF_DATE_FORMAT
- See Also:
- Constant Field Values
SCALE_HINT
public static final int SCALE_HINT
- See Also:
- Constant Field Values
getPreviewImage
public static java.awt.Image getPreviewImage(java.io.File file,
java.awt.image.ImageObserver observer)
- Method getPreviewImage
fixPreview
public static java.awt.Image fixPreview(java.io.File file,
java.awt.Image preview,
java.awt.image.ImageObserver observer)
getImageDate
public static java.util.Date getImageDate(java.io.File file)
- Method getImageDate
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver