Class ImgWMF

    • Constructor Detail

      • ImgWMF

        ImgWMF​(Image image)
      • ImgWMF

        public ImgWMF​(java.net.URL url)
               throws BadElementException,
                      java.io.IOException
        Constructs an ImgWMF-object, using an url.
        Parameters:
        url - the URL where the image can be found
        Throws:
        BadElementException - on error
        java.io.IOException - on error
      • ImgWMF

        public ImgWMF​(java.lang.String filename)
               throws BadElementException,
                      java.net.MalformedURLException,
                      java.io.IOException
        Constructs an ImgWMF-object, using a filename.
        Parameters:
        filename - a String-representation of the file that contains the image.
        Throws:
        BadElementException - on error
        java.net.MalformedURLException - on error
        java.io.IOException - on error
      • ImgWMF

        public ImgWMF​(byte[] img)
               throws BadElementException,
                      java.io.IOException
        Constructs an ImgWMF-object from memory.
        Parameters:
        img - the memory image
        Throws:
        BadElementException - on error
        java.io.IOException - on error
    • Method Detail

      • processParameters

        private void processParameters()
                                throws BadElementException,
                                       java.io.IOException
        This method checks if the image is a valid WMF and processes some parameters.
        Throws:
        BadElementException
        java.io.IOException
      • readWMF

        public void readWMF​(PdfTemplate template)
                     throws java.io.IOException,
                            DocumentException
        Reads the WMF into a template.
        Parameters:
        template - the template to read to
        Throws:
        java.io.IOException - on error
        DocumentException - on error