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 Image
Get theImage
from the resources by name.static AbstractImage
getAsAbstractImage
(String src, boolean mirrorX, boolean mirrorY) Get theAbstractImage
from the resources by name.static Image
toImage
(AbstractImage in) ConvertAbstractImage
toImage
.
-
Method Details
-
get
Get theImage
from 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 theAbstractImage
from the resources by name.- Parameters:
src
- the path relative to "/images/"mirrorX
- mirror at X-AxismirrorY
- mirror at Y-Axis- Returns:
- the Image
-
toImage
ConvertAbstractImage
toImage
.- Parameters:
in
- the input image- Returns:
- the converted image
-