public class ImageIOImageData extends java.lang.Object implements LoadableImageData
| Constructor and Description | 
|---|
| ImageIOImageData() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | configureEdging(boolean edging)Configure the edging that can be used to make texture edges
 loop more cleanly | 
| int | getDepth()Get the last bit depth read from a TGA | 
| int | getHeight()Get the last height read from a TGA | 
| java.nio.ByteBuffer | getImageBufferData()Get the store image | 
| int | getTexHeight()Get the ast required texture height for a loaded image | 
| int | getTexWidth()Get the last required texture width for a loaded image | 
| int | getWidth()Get the last width read from a TGA | 
| java.nio.ByteBuffer | imageToByteBuffer(java.awt.image.BufferedImage image,
                 boolean flipped,
                 boolean forceAlpha,
                 int[] transparent) | 
| java.nio.ByteBuffer | loadImage(java.io.InputStream fis)Load a image from the specified stream | 
| java.nio.ByteBuffer | loadImage(java.io.InputStream fis,
         boolean flipped,
         boolean forceAlpha,
         int[] transparent)Load a image from the specified stream | 
| java.nio.ByteBuffer | loadImage(java.io.InputStream fis,
         boolean flipped,
         int[] transparent)Load a image from the specified stream | 
public int getDepth()
ImageDatapublic int getHeight()
ImageDatapublic int getTexHeight()
ImageDatagetTexHeight in interface ImageDatapublic int getTexWidth()
ImageDatagetTexWidth in interface ImageDatapublic int getWidth()
ImageDatapublic java.nio.ByteBuffer loadImage(java.io.InputStream fis)
                              throws java.io.IOException
LoadableImageDataloadImage in interface LoadableImageDatafis - The stream from which we'll load the TGAjava.io.IOException - Indicates a failure to read the TGApublic java.nio.ByteBuffer loadImage(java.io.InputStream fis,
                                     boolean flipped,
                                     int[] transparent)
                              throws java.io.IOException
LoadableImageDataloadImage in interface LoadableImageDatafis - The stream from which we'll load the TGAflipped - True if we loading in flipped mode (used for cursors)transparent - The colour to interpret as transparent or null if nonejava.io.IOException - Indicates a failure to read the TGApublic java.nio.ByteBuffer loadImage(java.io.InputStream fis,
                                     boolean flipped,
                                     boolean forceAlpha,
                                     int[] transparent)
                              throws java.io.IOException
LoadableImageDataloadImage in interface LoadableImageDatafis - The stream from which we'll load the TGAflipped - True if we loading in flipped mode (used for cursors)forceAlpha - Force the output to have an alpha channeltransparent - The colour to interpret as transparent or null if nonejava.io.IOException - Indicates a failure to read the TGApublic java.nio.ByteBuffer imageToByteBuffer(java.awt.image.BufferedImage image,
                                             boolean flipped,
                                             boolean forceAlpha,
                                             int[] transparent)
public java.nio.ByteBuffer getImageBufferData()
ImageDatagetImageBufferData in interface ImageDatapublic void configureEdging(boolean edging)
LoadableImageDataconfigureEdging in interface LoadableImageDataedging - True if we should edge