Posted By:
stefan_gimeson
Posted On:
Friday, February 22, 2002 08:41 AM
"image4" is BufferedImage. "Ltab" is a LookupTableJAI. ... RenderedOp img = JAI.create("AWTImage", (Object)image4); PlanarImage jo = img.getRendering(); ParameterBlock pb = new ParameterBlock(); pb.addSource((Object)jo); pb.add(Ltab()); pb.add(KernelJAI.ERROR_FILTER_FLOYD_STEINBERG); RenderedOp imop = JAI.create("errordiffusion", pb, null); PlanarImage dst = imop.getRendering(); BufferedImage gus = dst.getAsBufferedImage(); image4=gus; ... Problem is, this makes no difference what so ever to my image. It still uses the wrong colors, instead of beeing d
More>>
"image4" is BufferedImage.
"Ltab" is a LookupTableJAI.
...
RenderedOp img = JAI.create("AWTImage", (Object)image4);
PlanarImage jo = img.getRendering();
ParameterBlock pb = new ParameterBlock();
pb.addSource((Object)jo);
pb.add(Ltab());
pb.add(KernelJAI.ERROR_FILTER_FLOYD_STEINBERG);
RenderedOp imop = JAI.create("errordiffusion", pb, null);
PlanarImage dst = imop.getRendering();
BufferedImage gus = dst.getAsBufferedImage();
image4=gus;
...
Problem is, this makes no difference what so ever to my image. It still uses the wrong colors, instead of beeing dithered to my lookuptable colors. Thanks for any help.
<<Less