Switch back to ImageIO.read() on CVS HEAD
(we stay with Toolkit.createImage() on helma_1_4 branch for now)
This commit is contained in:
parent
2b916bc2df
commit
8651432157
1 changed files with 6 additions and 6 deletions
|
@ -44,10 +44,10 @@ public class ImageIOGenerator extends ImageGenerator {
|
||||||
* @return the newly created image
|
* @return the newly created image
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
/* public Image read(String filename)
|
public Image read(String filename)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return ImageIO.read(new File(filename));
|
return ImageIO.read(new File(filename));
|
||||||
} */
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param url the URL the filename of the image to create
|
* @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
|
* @return the newly created image
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
/* public Image read(URL url)
|
public Image read(URL url)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return ImageIO.read(url);
|
return ImageIO.read(url);
|
||||||
} */
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param src the data of the image to create
|
* @param src the data of the image to create
|
||||||
|
@ -66,10 +66,10 @@ public class ImageIOGenerator extends ImageGenerator {
|
||||||
* @return the newly created image
|
* @return the newly created image
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
/* public Image read(byte[] src)
|
public Image read(byte[] src)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return ImageIO.read(new ByteArrayInputStream(src));
|
return ImageIO.read(new ByteArrayInputStream(src));
|
||||||
} */
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves the image. Image format is deduced from filename.
|
* Saves the image. Image format is deduced from filename.
|
||||||
|
|
Loading…
Add table
Reference in a new issue