Use Toolkit.createImage() to decode images until javax.imageio has matured.

This commit is contained in:
hns 2005-04-07 14:15:26 +00:00
parent 806260212e
commit a74ec62b68

View file

@ -44,10 +44,10 @@ public class ImageIOGenerator extends ImageGenerator {
* @return the newly created image
* @throws IOException
*/
public Image read(String filename)
/* public Image read(String filename)
throws IOException {
return ImageIO.read(new File(filename));
}
} */
/**
* @param url the URL the filename of the image to create
@ -55,10 +55,10 @@ public class ImageIOGenerator extends ImageGenerator {
* @return the newly created image
* @throws IOException
*/
public Image read(URL url)
/* public Image read(URL url)
throws IOException {
return ImageIO.read(url);
}
} */
/**
* @param src the data of the image to create
@ -66,10 +66,10 @@ public class ImageIOGenerator extends ImageGenerator {
* @return the newly created image
* @throws IOException
*/
public Image read(byte[] src)
/* public Image read(byte[] src)
throws IOException {
return ImageIO.read(new ByteArrayInputStream(src));
}
} */
/**
* Saves the image. Image format is deduced from filename.