return convertToColorSpace(bi, cs_to);
}
public BufferedImage convertBetweenColorSpacesX2(BufferedImage bi,
ColorSpace from, ColorSpace to) {
RenderingHints hints = new RenderingHints(RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_QUALITY);
hints.put(RenderingHints.KEY_COLOR_RENDERING,
RenderingHints.VALUE_COLOR_RENDER_QUALITY);
hints.put(RenderingHints.KEY_DITHERING,
RenderingHints.VALUE_DITHER_ENABLE);
// bi = relabelColorSpace(bi, cs);
// dumpColorSpace("\tcs_sRGB", cs_sRGB);
// dumpColorSpace("\tColorModel.getRGBdefaultc",