Package gaiasky.util

Class ImageUtils

java.lang.Object
gaiasky.util.ImageUtils

public class ImageUtils extends Object
Contains utilities to convert monochrome images to RGB.
  • Constructor Details

    • ImageUtils

      public ImageUtils()
  • Method Details

    • isMonochrome

      public static boolean isMonochrome(BufferedImage image)
    • monochromeToRGB

      public static boolean monochromeToRGB(File file) throws IOException
      Converts the image in the incoming file to RGB if it is a monochrome image
      Parameters:
      file - The image to convert
      Returns:
      A boolean indicating whether the conversion was carried out (i.e. the image was actually monochrome)
      Throws:
      IOException