Class Images
java.lang.Object
de.gurkenlabs.litiengine.resources.ResourcesContainer<java.awt.image.BufferedImage>
de.gurkenlabs.litiengine.resources.Images
public final class Images
extends ResourcesContainer<java.awt.image.BufferedImage>
Method Summary
Modifier and Type Method Description void
load(TextureAtlas textureAtlas)
Loads all images from the specified texture atlas.protected java.awt.image.BufferedImage
load(java.net.URL resourceName)
Loads 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
protected java.awt.image.BufferedImage load(java.net.URL resourceName) throws java.io.IOExceptionLoads the image by the specified resourceName. This method supports both loading images from a folder and loading them from the resources.- Specified by:
load
in classResourcesContainer<java.awt.image.BufferedImage>
- Parameters:
resourceName
- The path to the image.- Returns:
- the image
- Throws:
java.io.IOException