Class WmfImageData


  • public class WmfImageData
    extends ImageData
    Image implementation for WMF, Windows Metafile.
    • Field Detail

      • wmf

        private static final byte[] wmf
    • Constructor Detail

      • WmfImageData

        public WmfImageData​(java.lang.String fileName)
                     throws java.net.MalformedURLException
        Creates a WmfImage from a file.
        Parameters:
        fileName - pah to the file
        Throws:
        java.net.MalformedURLException - a MalformedURLException
      • WmfImageData

        public WmfImageData​(java.net.URL url)
        Creates a WmfImage from a URL.
        Parameters:
        url - URL to the file
      • WmfImageData

        public WmfImageData​(byte[] bytes)
        Creates a WmfImage from a byte[].
        Parameters:
        bytes - the image bytes
    • Method Detail

      • imageTypeIs

        private static boolean imageTypeIs​(byte[] imageType,
                                           byte[] compareWith)
      • readImageType

        private static byte[] readImageType​(java.net.URL source)
      • readImageType

        private static byte[] readImageType​(byte[] bytes)