Class AviFormat
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.formats.ImageFormat
-
- uk.ac.rdg.resc.edal.graphics.formats.SimpleFormat
-
- uk.ac.rdg.resc.edal.graphics.formats.AviFormat
-
public class AviFormat extends SimpleFormat
"Image" format for outputting to AVI. Uses the Monte Media Library by Werner Randelshofer to do the rendering to AVI.- Author:
- Guy Griffiths
-
-
Constructor Summary
Constructors Constructor Description AviFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMimeType()
Returns the MIME type that is supported by this ImageFormat object.boolean
supportsFullyTransparentPixels()
Returns true if this image format supports fully-transparent pixels.boolean
supportsMultipleFrames()
Returns true if this image format supports multi-frame animations.boolean
supportsPartiallyTransparentPixels()
Returns true if this image format supports partially-transparent pixels.void
writeImage(List<BufferedImage> frames, OutputStream out, Integer frameRate)
Writes the given list ofjava.awt.BufferedImage
s to the given OutputStream.-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.formats.SimpleFormat
requiresLegend, writeImage
-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.formats.ImageFormat
get, getSupportedMimeTypes
-
-
-
-
Method Detail
-
writeImage
public void writeImage(List<BufferedImage> frames, OutputStream out, Integer frameRate) throws IOException
Description copied from class:SimpleFormat
Writes the given list ofjava.awt.BufferedImage
s to the given OutputStream. If this ImageFormat doesn't support animations then the given list of frames should only contain one entry, otherwise an IllegalArgumentException will be thrown.- Specified by:
writeImage
in classSimpleFormat
- Parameters:
frames
- List of BufferedImages to render into an imageout
- The OutputStream to which the image will be writtenframeRate
- The frame rate to use if this is an animation.- Throws:
IOException
- if there was an error writing to the output stream
-
getMimeType
public String getMimeType()
Description copied from class:ImageFormat
Returns the MIME type that is supported by this ImageFormat object.- Specified by:
getMimeType
in classImageFormat
-
supportsMultipleFrames
public boolean supportsMultipleFrames()
Description copied from class:ImageFormat
Returns true if this image format supports multi-frame animations.- Specified by:
supportsMultipleFrames
in classImageFormat
-
supportsFullyTransparentPixels
public boolean supportsFullyTransparentPixels()
Description copied from class:ImageFormat
Returns true if this image format supports fully-transparent pixels.- Specified by:
supportsFullyTransparentPixels
in classImageFormat
-
supportsPartiallyTransparentPixels
public boolean supportsPartiallyTransparentPixels()
Description copied from class:ImageFormat
Returns true if this image format supports partially-transparent pixels. If this is true then supportsFullyTransparentPixels() should also be true.- Specified by:
supportsPartiallyTransparentPixels
in classImageFormat
-
-