|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.opengl.ImageIOImageData
public class ImageIOImageData
An image data provider that uses ImageIO to retrieve image data in a format suitable for creating OpenGL textures. This implementation is used when formats not natively supported by the library are required.
| Constructor Summary | |
|---|---|
ImageIOImageData()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageIOImageData()
| Method Detail |
|---|
public int getDepth()
ImageData
getDepth in interface ImageDataImageData.getDepth()public int getHeight()
ImageData
getHeight in interface ImageDataImageData.getHeight()public int getTexHeight()
ImageData
getTexHeight in interface ImageDataImageData.getTexHeight()public int getTexWidth()
ImageData
getTexWidth in interface ImageDataImageData.getTexWidth()public int getWidth()
ImageData
getWidth in interface ImageDataImageData.getWidth()
public java.nio.ByteBuffer loadImage(java.io.InputStream fis)
throws java.io.IOException
LoadableImageData
loadImage in interface LoadableImageDatafis - The stream from which we'll load the TGA
java.io.IOException - Indicates a failure to read the TGALoadableImageData.loadImage(java.io.InputStream)
public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
boolean flipped,
int[] transparent)
throws java.io.IOException
LoadableImageData
loadImage 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 none
java.io.IOException - Indicates a failure to read the TGALoadableImageData.loadImage(java.io.InputStream, boolean, int[])
public java.nio.ByteBuffer loadImage(java.io.InputStream fis,
boolean flipped,
boolean forceAlpha,
int[] transparent)
throws java.io.IOException
LoadableImageData
loadImage 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 none
java.io.IOException - Indicates a failure to read the TGALoadableImageData.loadImage(java.io.InputStream, boolean, boolean, int[])
public java.nio.ByteBuffer imageToByteBuffer(java.awt.image.BufferedImage image,
boolean flipped,
boolean forceAlpha,
int[] transparent)
public java.nio.ByteBuffer getImageBufferData()
ImageData
getImageBufferData in interface ImageDataImageData.getImageBufferData()public void configureEdging(boolean edging)
LoadableImageData
configureEdging in interface LoadableImageDataedging - True if we should edgeLoadableImageData.configureEdging(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||