public class ImageInfo extends Object
Modifier and Type | Field and Description |
---|---|
static Object |
HAS_MORE_IMAGES
Key to register information about additional (sub-)images in the image file after the
selected one.
|
static Object |
ORIGINAL_IMAGE
Key to register the "original object" among the custom objects of an ImageInfo instance.
|
Constructor and Description |
---|
ImageInfo(String originalURI,
String mimeType)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
Map |
getCustomObjects()
Returns a Map of custom objects associated with this instance.
|
String |
getMimeType()
Returns the image's MIME type.
|
Image |
getOriginalImage()
Returns the original Image instance if such an Image instance is created while building
this ImageInfo object.
|
String |
getOriginalURI()
Returns the original URI of the image.
|
ImageSize |
getSize()
Returns the image's intrinsic size.
|
void |
setSize(ImageSize size)
Sets the image's intrinsic size.
|
String |
toString() |
public static final Object ORIGINAL_IMAGE
getOriginalImage()
public static final Object HAS_MORE_IMAGES
Boolean.TRUE
or Boolean.FALSE
. A value of TRUE indicates that there are
more subimages available but the exact number of additional images has not been determined
for performance reasons.public String getOriginalURI()
public String getMimeType()
public ImageSize getSize()
public void setSize(ImageSize size)
size
- the sizepublic Map getCustomObjects()
public Image getOriginalImage()
This method is short for: (Image)this.customObjects.get(ORIGINAL_IMAGE);
ORIGINAL_IMAGE
Copyright © 2024 Apache Software Foundation. All rights reserved.