Package gaiasky.util
Class ImageUtils
java.lang.Object
gaiasky.util.ImageUtils
Contains utilities to convert monochrome images to RGB.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isMonochrome
(BufferedImage image) static boolean
monochromeToRGB
(File file) Converts the image in the incoming file to RGB if it is a monochrome image
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
isMonochrome
-
monochromeToRGB
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
-