org.newdawn.slick.imageout
Class TGAWriter

java.lang.Object
  extended by org.newdawn.slick.imageout.TGAWriter
All Implemented Interfaces:
ImageWriter

public class TGAWriter
extends java.lang.Object
implements ImageWriter

A utility to save TGA's given a Slick image.

Author:
Jon

Constructor Summary
TGAWriter()
           
 
Method Summary
 void saveImage(Image image, java.lang.String format, java.io.OutputStream output, boolean writeAlpha)
          Save an Image to an given location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGAWriter

public TGAWriter()
Method Detail

saveImage

public void saveImage(Image image,
                      java.lang.String format,
                      java.io.OutputStream output,
                      boolean writeAlpha)
               throws java.io.IOException
Description copied from interface: ImageWriter
Save an Image to an given location

Specified by:
saveImage in interface ImageWriter
Parameters:
image - The image to be written
format - The format that this writer is expected to be produced in
output - The output stream to which the image data should be written
writeAlpha - True if we should write alpha information to the file
Throws:
java.io.IOException - Indicates a failure to write out the image to the specified location
See Also:
ImageWriter.saveImage(org.newdawn.slick.Image, java.lang.String, java.io.OutputStream, boolean)


Copyright © 2006 New Dawn Software. All Rights Reserved.