Class WmfDecoder

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

    public class WmfDecoder
    extends com.idrsolutions.image.JDeliImage
    implements com.idrsolutions.image.Decoder
    • Constructor Summary

      Constructors 
      Constructor Description
      WmfDecoder()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage read​(byte[] data)  
      java.awt.image.BufferedImage read​(java.io.File file)
      Decodes and returns the WMF file as a BufferedImage from a file
      static void toSVG​(java.io.FileInputStream wmfInputStream, java.io.FileOutputStream svgOutputFile)  
      static void toSVG​(java.io.File wmfFile, java.io.File svgOutputFile)  
      • Methods inherited from class com.idrsolutions.image.JDeliImage

        optimiseImage
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.idrsolutions.image.Decoder

        getImageCount, readImageAt, setMetadata
    • Constructor Detail

      • WmfDecoder

        public WmfDecoder()
    • Method Detail

      • read

        public java.awt.image.BufferedImage read​(java.io.File file)
                                          throws java.io.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:
        java.io.IOException
      • read

        public java.awt.image.BufferedImage read​(byte[] data)
                                          throws java.lang.Exception
        Specified by:
        read in interface com.idrsolutions.image.Decoder
        Throws:
        java.lang.Exception
      • toSVG

        public static void toSVG​(java.io.File wmfFile,
                                 java.io.File svgOutputFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • toSVG

        public static void toSVG​(java.io.FileInputStream wmfInputStream,
                                 java.io.FileOutputStream svgOutputFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException