Class ImageContainer
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.resources.ResourcesContainer<BufferedImage>
de.pirckheimer_gymnasium.engine_pi.resources.ImageContainer
- All Implemented Interfaces:
Container<BufferedImage>
Ein Speicher für Bild-Ressourcen vom Datentyp
BufferedImage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedImageLoads the image by the specified resourceName.Methods inherited from class de.pirckheimer_gymnasium.engine_pi.resources.ResourcesContainer
add, add, addClearedListener, addContainerListener, addManipulator, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getAsync, getResources, loadResource, remove, remove, removeClearedListener, removeContainerListener, removeManipulator, tryGet, tryGet
-
Constructor Details
-
ImageContainer
public ImageContainer()
-
-
Method Details
-
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:
name- The path to the image.- Returns:
- the image
- Throws:
IOException
-