Package org.apache.axis.components.image
Interface ImageIO
-
public interface ImageIOThis interface defines a ImageIO modules functionality- Since:
- 2.0
- Author:
- Davanum Srinivas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.ImageloadImage(java.io.InputStream in)Load an Image.voidsaveImage(java.lang.String id, java.awt.Image image, java.io.OutputStream os)Save an image.
-
-
-
Method Detail
-
saveImage
void saveImage(java.lang.String id, java.awt.Image image, java.io.OutputStream os) throws java.lang.ExceptionSave an image.- Parameters:
id- the mime-type of the format to save the imageimage- the image to saveos- the output stream to write to- Throws:
java.lang.Exception- if an error prevents image encoding
-
loadImage
java.awt.Image loadImage(java.io.InputStream in) throws java.lang.ExceptionLoad an Image.- Parameters:
in- the stream to load the image- Returns:
- the Image
- Throws:
java.lang.Exception
-
-