Package helma.image.imageio
Class ImageIOGenerator
java.lang.Object
helma.image.ImageGenerator
helma.image.imageio.ImageIOGenerator
A wrapper for an image that uses the ImageIO Framework.
-
Field Summary
Fields inherited from class helma.image.ImageGenerator
generator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(ImageWrapper wrapper, OutputStream out, String mimeType, float quality, boolean alpha) Saves the image.void
write
(ImageWrapper wrapper, String filename, float quality, boolean alpha) Saves the image.protected void
write
(ImageWrapper wrapper, ImageWriter writer, float quality, boolean alpha) Methods inherited from class helma.image.ImageGenerator
createImage, createImage, createImage, createImage, createImage, createImage, createImage, getInstance, read, read, read, read
-
Constructor Details
-
ImageIOGenerator
public ImageIOGenerator()
-
-
Method Details
-
write
protected void write(ImageWrapper wrapper, ImageWriter writer, float quality, boolean alpha) throws IOException - Throws:
IOException
-
write
public void write(ImageWrapper wrapper, String filename, float quality, boolean alpha) throws IOException Saves the image. Image format is deduced from filename.- Specified by:
write
in classImageGenerator
- Parameters:
wrapper
- the image to writefilename
- the file to write toquality
- image qualityalpha
- to enable alpha- Throws:
IOException
- See Also:
-
write
public void write(ImageWrapper wrapper, OutputStream out, String mimeType, float quality, boolean alpha) throws IOException Saves the image. Image format is deduced from type.- Specified by:
write
in classImageGenerator
- Parameters:
wrapper
- the image to writeout
- the outputstream to write tomimeType
- the mime typequality
- image qualityalpha
- to enable alpha- Throws:
IOException
- See Also:
-