Interface ImageSink<T>

    • Method Detail

      • write

        void write​(java.awt.image.BufferedImage img)
            throws java.io.IOException
        Writes the resulting image to a destination.
        Parameters:
        img - The image to write or store.
        Throws:
        java.io.IOException - When a problem occurs while writing or storing the image.
        java.lang.NullPointerException - If the image is null.
      • setOutputFormatName

        void setOutputFormatName​(java.lang.String format)
        Sets the output format of the resulting image.

        For ImageSinks which stores raw images, the format name specified by this method may be ignored.

        Parameters:
        format - File format with which to store the image.
      • preferredOutputFormatName

        java.lang.String preferredOutputFormatName()

        Returns the output format to use from information provided for the output image.

        If the output format cannot be determined, then ThumbnailParameter.ORIGINAL_FORMAT should be returned.

        Returns:
        Name of the preferred output format.
      • getSink

        T getSink()
        Returns the destination to which the thumbnail will be stored or written.
        Returns:
        The destination for the thumbnail image.