Class Images
java.lang.Object
de.gurkenlabs.litiengine.resources.ResourcesContainer<BufferedImage>
de.gurkenlabs.litiengine.resources.Images
-
Method Summary
Modifier and TypeMethodDescriptionvoidload(TextureAtlas textureAtlas) Loads all images from the specified texture atlas.protected BufferedImageLoads the image by the specified resourceName.Methods inherited from class de.gurkenlabs.litiengine.resources.ResourcesContainer
add, add, addClearedListener, addContainerListener, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getAsync, getResources, remove, remove, removeClearedListener, removeContainerListener, tryGet, tryGet
-
Method Details
-
load
Loads all images from the specified texture atlas.- Parameters:
textureAtlas- The texture atlas that contains all the images.
-
load
Loads the image by the specified resourceName. This method supports both loading images from a folder and loading them from the resources.- Specified by:
loadin classResourcesContainer<BufferedImage>- Parameters:
resourceName- The path to the image.- Returns:
- the image
- Throws:
IOException
-