The Javadoc provided in the original code gave the following notation: "This class is a mess and needs to be cleaned up."
638639640641642643644645646647648
final ICC_ColorSpace cs = new ICC_ColorSpace(iccProfile); final ColorModel srgbCM = ColorModel.getRGBdefault(); final ColorSpace cs_sRGB = srgbCM.getColorSpace(); result = new ColorTools().convertBetweenColorSpaces(result, cs, cs_sRGB); } } return result;