Package rekit.gui

Class ImageManagement

java.lang.Object
rekit.gui.ImageManagement

public final class ImageManagement extends Object
This class helps to load images from the resources.
Author:
Dominik Fuchss
  • Method Details

    • get

      public static Image get(String src, boolean mirrorX, boolean mirrorY)
      Get the Image from the resources by name.
      Parameters:
      src - the path relative to "/images/"
      mirrorX - mirror at X-Axis
      mirrorY - mirror at Y-Axis
      Returns:
      the Image
    • getAsAbstractImage

      public static AbstractImage getAsAbstractImage(String src, boolean mirrorX, boolean mirrorY)
      Get the AbstractImage from the resources by name.
      Parameters:
      src - the path relative to "/images/"
      mirrorX - mirror at X-Axis
      mirrorY - mirror at Y-Axis
      Returns:
      the Image
    • toImage

      public static Image toImage(AbstractImage in)
      Convert AbstractImage to Image.
      Parameters:
      in - the input image
      Returns:
      the converted image