public class ColorTools extends Object
The Javadoc provided in the original code gave the
following notation:
"This class is a mess and needs to be cleaned up."
Constructor and Description |
---|
ColorTools() |
public BufferedImage correctImage(BufferedImage src, File file) throws ImageReadException, IOException
ImageReadException
IOException
public BufferedImage relabelColorSpace(BufferedImage bi, ICC_Profile profile) throws ImagingOpException
ImagingOpException
public BufferedImage relabelColorSpace(BufferedImage bi, ColorSpace cs) throws ImagingOpException
ImagingOpException
public BufferedImage relabelColorSpace(BufferedImage bi, ColorModel cm) throws ImagingOpException
ImagingOpException
public ColorModel deriveColorModel(BufferedImage bi, ColorSpace cs) throws ImagingOpException
ImagingOpException
public ColorModel deriveColorModel(BufferedImage bi, ColorSpace cs, boolean forceNoAlpha) throws ImagingOpException
ImagingOpException
public ColorModel deriveColorModel(ColorModel colorModel, ColorSpace cs, boolean forceNoAlpha) throws ImagingOpException
ImagingOpException
public BufferedImage convertToColorSpace(BufferedImage bi, ColorSpace to)
public BufferedImage convertTosRGB(BufferedImage bi)
protected BufferedImage convertFromColorSpace(BufferedImage bi, ColorSpace from)
public BufferedImage convertBetweenICCProfiles(BufferedImage bi, ICC_Profile from, ICC_Profile to)
public BufferedImage convertToICCProfile(BufferedImage bi, ICC_Profile to)
public BufferedImage convertBetweenColorSpacesX2(BufferedImage bi, ColorSpace from, ColorSpace to)
public BufferedImage convertBetweenColorSpaces(BufferedImage bi, ColorSpace from, ColorSpace to)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.