Beispiel #1
0
 /**
  * Constructs an <CODE>ImgWMF</CODE>-object, using a <VAR>filename</VAR>.
  *
  * @param filename a <CODE>String</CODE>-representation of the file that contains the image.
  * @throws BadElementException on error
  * @throws MalformedURLException on error
  * @throws IOException on error
  */
 public ImgWMF(String filename) throws BadElementException, MalformedURLException, IOException {
   this(Utilities.toURL(filename));
 }
 /**
  * Reads a PNG from a file.
  *
  * @param file the file
  * @throws IOException on error
  * @return the image
  */
 public static Image getImage(String file) throws IOException {
   return getImage(Utilities.toURL(file));
 }