Package com.spinyowl.legui.image
Class LoadableImage
java.lang.Object
com.spinyowl.legui.image.Image
com.spinyowl.legui.image.LoadableImage
- Direct Known Subclasses:
StbBackedLoadableImage
Represent image source.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLoadableImage(String path) Used to create image object but not load it. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ImageChannelsReturns image channels.abstract intReturns image height.abstract ByteBufferReturns image data.getPath()Returns image path.abstract intgetWidth()Returns image width.inthashCode()abstract voidload()Should be used to load image data from source.voidUsed to set path to image.toString()
-
Constructor Details
-
LoadableImage
Used to create image object but not load it.- Parameters:
path- path to image source.
-
-
Method Details
-
getWidth
public abstract int getWidth()Returns image width. -
getHeight
public abstract int getHeight()Returns image height. -
getChannels
Returns image channels.- Returns:
- image channels.
-
getImageData
Returns image data.- Returns:
- image data.
-
getPath
Returns image path.- Returns:
- image path.
-
setPath
Used to set path to image. Use this method withload()method.- Parameters:
path- path to image.
-
load
public abstract void load()Should be used to load image data from source. -
toString
-
equals
-
hashCode
public int hashCode()
-