Package com.spinyowl.legui.image
Class StbBackedLoadableImage
java.lang.Object
com.spinyowl.legui.image.Image
com.spinyowl.legui.image.LoadableImage
com.spinyowl.legui.image.StbBackedLoadableImage
-
Constructor Summary
ConstructorsConstructorDescriptionStbBackedLoadableImage(String path) Used to create buffered image object and load it. -
Method Summary
Methods inherited from class com.spinyowl.legui.image.LoadableImage
getPath, setPath
-
Constructor Details
-
StbBackedLoadableImage
Used to create buffered image object and load it.- Parameters:
path- path to image source.
-
-
Method Details
-
load
public void load()Should be used to load image data from source.- Specified by:
loadin classLoadableImage
-
getWidth
public int getWidth()Returns image width.- Specified by:
getWidthin classLoadableImage- Returns:
- image width.
-
getHeight
public int getHeight()Returns image height.- Specified by:
getHeightin classLoadableImage- Returns:
- image height.
-
getImageData
Returns image data.- Specified by:
getImageDatain classLoadableImage- Returns:
- image data.
-
getChannels
Returns image channels.- Specified by:
getChannelsin classLoadableImage- Returns:
- image channels.
-
toString
- Overrides:
toStringin classLoadableImage
-
equals
- Overrides:
equalsin classLoadableImage
-
hashCode
public int hashCode()- Overrides:
hashCodein classLoadableImage
-