public class BufferedImage extends LoadableImage
Constructor and Description |
---|
BufferedImage()
This constructor should be used with
LoadableImage.setPath(String) and load() methods. |
BufferedImage(java.lang.String path)
Used to create buffered image object and load it.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ImageChannels |
getChannels()
Returns image channels.
|
int |
getHeight()
Returns image height.
|
java.nio.ByteBuffer |
getImageData()
Returns image data.
|
int |
getWidth()
Returns image width.
|
int |
hashCode() |
void |
load()
Should be used to load image data from source.
|
java.lang.String |
toString() |
getPath, setPath
public BufferedImage()
LoadableImage.setPath(String)
and load()
methods.public BufferedImage(java.lang.String path)
path
- path to image source.public void load()
load
in class LoadableImage
public int getWidth()
getWidth
in class LoadableImage
public int getHeight()
getHeight
in class LoadableImage
public java.nio.ByteBuffer getImageData()
getImageData
in class LoadableImage
public ImageChannels getChannels()
getChannels
in class LoadableImage
public java.lang.String toString()
toString
in class LoadableImage
public boolean equals(java.lang.Object obj)
equals
in class LoadableImage
public int hashCode()
hashCode
in class LoadableImage