Class ImageIOUtil
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.imageio.ImageIOUtil
Helper and convenience methods for ImageIO.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectKey for ImageInfo's custom objects to embed the ImageIO metadata -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddumpMetadataToSystemOut(IIOMetadata iiometa) Dumps the content of an IIOMetadata instance to System.out.static voidextractResolution(IIOMetadata iiometa, ImageSize size) Extracts the resolution information from the standard ImageIO metadata.static ElementReturns a child element of another element or null if there's no such child.
-
Field Details
-
IMAGEIO_METADATA
Key for ImageInfo's custom objects to embed the ImageIO metadata
-
-
Method Details
-
extractResolution
Extracts the resolution information from the standard ImageIO metadata.- Parameters:
iiometa- the metadata provided by ImageIOsize- the image size object
-
getChild
Returns a child element of another element or null if there's no such child.- Parameters:
el- the parent elementname- the name of the requested child- Returns:
- the child or null if there's no such child
-
dumpMetadataToSystemOut
Dumps the content of an IIOMetadata instance to System.out.- Parameters:
iiometa- the metadata
-