Package org.apache.commons.imaging
Class ColorTools
java.lang.Object
org.apache.commons.imaging.ColorTools
A selection of tools for evaluating and manipulating color
spaces, color values, etc.
The Javadoc provided in the original code gave the
following notation:
"This class is a mess and needs to be cleaned up."
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertBetweenColorSpaces
(BufferedImage bi, ColorSpace from, ColorSpace to) convertBetweenColorSpacesX2
(BufferedImage bi, ColorSpace from, ColorSpace to) convertBetweenICCProfiles
(BufferedImage bi, ICC_Profile from, ICC_Profile to) protected BufferedImage
convertFromColorSpace
(BufferedImage bi, ColorSpace from) correctImage
(BufferedImage src, File file) deriveColorModel
(BufferedImage bi, ColorSpace cs) deriveColorModel
(BufferedImage bi, ColorSpace cs, boolean forceNoAlpha) deriveColorModel
(ColorModel colorModel, ColorSpace cs, boolean forceNoAlpha) relabelColorSpace
(BufferedImage bi, ColorSpace cs) relabelColorSpace
(BufferedImage bi, ICC_Profile profile) relabelColorSpace
(BufferedImage bi, ColorModel cm)
-
Constructor Details
-
ColorTools
public ColorTools()
-
-
Method Details
-
correctImage
public BufferedImage correctImage(BufferedImage src, File file) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
relabelColorSpace
public BufferedImage relabelColorSpace(BufferedImage bi, ICC_Profile profile) throws ImagingOpException - Throws:
ImagingOpException
-
relabelColorSpace
- Throws:
ImagingOpException
-
relabelColorSpace
- Throws:
ImagingOpException
-
deriveColorModel
- Throws:
ImagingOpException
-
deriveColorModel
public ColorModel deriveColorModel(BufferedImage bi, ColorSpace cs, boolean forceNoAlpha) throws ImagingOpException - Throws:
ImagingOpException
-
deriveColorModel
public ColorModel deriveColorModel(ColorModel colorModel, ColorSpace cs, boolean forceNoAlpha) throws ImagingOpException - Throws:
ImagingOpException
-
convertToColorSpace
-
convertTosRGB
-
convertFromColorSpace
-
convertBetweenICCProfiles
-
convertToICCProfile
-
convertBetweenColorSpacesX2
-
convertBetweenColorSpaces
-