Class EmfDecoder

  • All Implemented Interfaces:
    com.idrsolutions.image.Decoder

    public class EmfDecoder
    extends com.idrsolutions.image.JDeliImage
    implements com.idrsolutions.image.Decoder
    • Constructor Detail

      • EmfDecoder

        public EmfDecoder()
    • Method Detail

      • getCommand

        public static String getCommand​(int command)
      • read

        public BufferedImage read​(File file)
                           throws IOException
        Decodes and returns the WMF file as a BufferedImage from a file
        Specified by:
        read in interface com.idrsolutions.image.Decoder
        Parameters:
        file - input image file to be decoded
        Returns:
        BufferedImage decoded image
        Throws:
        IOException
      • read

        public BufferedImage read​(byte[] data)
                           throws IOException
        Decodes and returns the WMF image as a BufferedImage from bytes
        Specified by:
        read in interface com.idrsolutions.image.Decoder
        Parameters:
        data - byte[] containing the WMF data to be decoded
        Returns:
        BufferedImage The decoded image
        Throws:
        IOException