Class ImageIOUtil


  • public final class ImageIOUtil
    extends Object
    Helper and convenience methods for ImageIO.
    • Field Detail

      • IMAGEIO_METADATA

        public static final Object IMAGEIO_METADATA
        Key for ImageInfo's custom objects to embed the ImageIO metadata
    • Method Detail

      • extractResolution

        public static void extractResolution​(IIOMetadata iiometa,
                                             ImageSize size)
        Extracts the resolution information from the standard ImageIO metadata.
        Parameters:
        iiometa - the metadata provided by ImageIO
        size - the image size object
      • getChild

        public static Element getChild​(Element el,
                                       String name)
        Returns a child element of another element or null if there's no such child.
        Parameters:
        el - the parent element
        name - the name of the requested child
        Returns:
        the child or null if there's no such child
      • dumpMetadataToSystemOut

        public static void dumpMetadataToSystemOut​(IIOMetadata iiometa)
        Dumps the content of an IIOMetadata instance to System.out.
        Parameters:
        iiometa - the metadata