public class PreloaderEMF extends AbstractImagePreloader
Modifier and Type | Field and Description |
---|---|
protected static int |
EMF_SIG_LENGTH
Length of the EMF header
|
private static int |
HEIGHT_OFFSET
offset to height
|
private static int |
HRES_MM_OFFSET
offset to horizontal resolution in mm
|
private static int |
HRES_PIXEL_OFFSET
offset to horizontal resolution in pixel
|
private static int |
SIGNATURE_OFFSET
offset to signature
|
private static int |
VRES_MM_OFFSET
offset to vertical resolution in mm
|
private static int |
VRES_PIXEL_OFFSET
offset to vertical resolution in pixel
|
private static int |
WIDTH_OFFSET
offset to width
|
DEFAULT_PRIORITY
Constructor and Description |
---|
PreloaderEMF() |
Modifier and Type | Method and Description |
---|---|
private ImageSize |
determineSize(javax.imageio.stream.ImageInputStream in,
ImageContext context) |
ImageInfo |
preloadImage(java.lang.String uri,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
getHeader, getPriority
protected static final int EMF_SIG_LENGTH
private static final int SIGNATURE_OFFSET
private static final int WIDTH_OFFSET
private static final int HEIGHT_OFFSET
private static final int HRES_PIXEL_OFFSET
private static final int VRES_PIXEL_OFFSET
private static final int HRES_MM_OFFSET
private static final int VRES_MM_OFFSET
public ImageInfo preloadImage(java.lang.String uri, javax.xml.transform.Source src, ImageContext context) throws java.io.IOException, ImageException
ImageException
is only
thrown if the image is identified but some error has happened while working on the file.uri
- the original (unresolved) URI of the imagesrc
- a image source the image is loaded fromcontext
- the context object that provides configuration informationjava.io.IOException
- if an I/O error occurs while preloading the imageImageException
- if an error occurs while preloading the imageprivate ImageSize determineSize(javax.imageio.stream.ImageInputStream in, ImageContext context) throws java.io.IOException, ImageException
java.io.IOException
ImageException