Package rekit.gui
Class ImageManagement
java.lang.Object
rekit.gui.ImageManagement
This class helps to load images from the resources.
- Author:
- Dominik Fuchss
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageGet theImagefrom the resources by name.static AbstractImagegetAsAbstractImage(String src, boolean mirrorX, boolean mirrorY) Get theAbstractImagefrom the resources by name.static ImagetoImage(AbstractImage in) ConvertAbstractImagetoImage.
-
Method Details
-
get
Get theImagefrom the resources by name.- Parameters:
src- the path relative to "/images/"mirrorX- mirror at X-AxismirrorY- mirror at Y-Axis- Returns:
- the Image
-
getAsAbstractImage
Get theAbstractImagefrom the resources by name.- Parameters:
src- the path relative to "/images/"mirrorX- mirror at X-AxismirrorY- mirror at Y-Axis- Returns:
- the Image
-
toImage
ConvertAbstractImagetoImage.- Parameters:
in- the input image- Returns:
- the converted image
-