public class SimpleImage
extends java.lang.Object
| Constructor and Description |
|---|
SimpleImage(java.io.File file) |
SimpleImage(java.io.File file,
int width,
int height,
int hints)
Construct a SimpleImage with the arguments provided.
|
SimpleImage(java.awt.Image image,
int width,
int height,
int hints)
Construct a SimpleImage with the arguments provided.
|
SimpleImage(SimpleImage image,
int width,
int height,
int hints)
Construct a resized SimpleImage with the arguments provided.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getBufferedImage()
Get the current image.
|
java.awt.image.BufferedImage |
getBufferedImage(int index)
Get the image at the given index.
|
int |
getDelay(int index)
Get the delay at the given index.
|
int |
getFrames()
Get the amount of frames.
|
int |
getHeight()
Get the height.
|
int[] |
getImage()
Get the ARGB buffer for the current image.
|
int[] |
getImage(int index)
Get the ARGB buffer at the given index.
|
protected int |
getIndex() |
int |
getWidth()
Get the width.
|
public SimpleImage(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic SimpleImage(java.io.File file,
int width,
int height,
int hints)
throws java.io.IOException
file - Must not be null, exist, and be a file.width - The width that this image should be resized to.height - The height that this image should be resized to.hints - Resizing hints. For example, Image.SCALE_REPLICATE.java.io.IOException - Look for ImageIO.read( File ).public SimpleImage(java.awt.Image image,
int width,
int height,
int hints)
image - Cannot be null.width - The width that this image should be resized to.height - The height that this image should be resized to.hints - Resizing hints. For example, Image.SCALE_REPLICATE.public SimpleImage(SimpleImage image, int width, int height, int hints)
image - Another SimpleImage, cannot be null.width - The new width.height - The new height.hints - Resizing hints. For example, Image.SCALE_REPLICATE.public java.awt.image.BufferedImage getBufferedImage()
public java.awt.image.BufferedImage getBufferedImage(int index)
index - The index of the images.public int[] getImage()
public int[] getImage(int index)
index - The index of the buffer.protected int getIndex()
public int getDelay(int index)
index - The index of the delay.public int getFrames()
public int getWidth()
public int getHeight()