ownowl a écrit :
> Hello
>
[quoted text clipped - 11 lines]
> the sampleModel of the planarImage is a PixelInterleavedSampleModel
> the colorModel of the planarImage is a IndexColorModel
I tried that :
ImageLayout layout = new ImageLayout();
ColorModel cm = new
ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB), new
int[] { 8, 8, 8 }, false, true, Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
layout.setColorModel(cm);
RenderingHints hints = new
RenderingHints(JAI.KEY_IMAGE_LAYOUT, layout);
ParameterBlockJAI pb = new ParameterBlockJAI("format");
pb.addSource(planarImage);
planarImage = JAI.create("format", pb, hints);
with using ColorSpace.CS_GRAY parameter for the ColorSpace.getInstance()
methode I get a gray scale level image.
But I can not modify the intensity of colors or gray scale level.
A idea ?
Olivier