Class ImageUtil

java.lang.Object
com.github.tadukoo.view.ImageUtil

public class ImageUtil extends Object
This class contains utility methods for dealing with images.
Version:
0.1-Alpha
Author:
Logan Ferree (Tadukoo)
  • Constructor Details

    • ImageUtil

      private ImageUtil()
      Not allowed to create an ImageUtil
  • Method Details

    • loadImageAsResource

      public static BufferedImage loadImageAsResource(String filePath) throws IOException
      Loads an image from the given filepath using getResourceAsStream.
      Parameters:
      filePath - The path to the image file
      Returns:
      The loaded image
      Throws:
      IOException - If it goes wrong