hi,
I'm using the function below to resize an image. Unfortunately the thumbnail looks always very "pixel-ish" not matter what Interplocation I choose. Not smooth at all. Any clue?
public RenderedOp resize(PlanarImage planImg, float resizeFactor){
ParameterBlock pb = new ParameterBlock();
pb = new ParameterBlock();
pb.addSource(planImg);
pb.add(resizeFactor);
pb.add(resizeFactor);
pb.add(0.0f);
pb.add(0.0f);
pb.add(new InterpolationNearest());
RenderedOp img = JAI.create("scale", pb, null);
return img;
}
I'm using the function below to resize an image. Unfortunately the thumbnail looks always very "pixel-ish" not matter what Interplocation I choose. Not smooth at all. Any clue?
public RenderedOp resize(PlanarImage planImg, float resizeFactor){
ParameterBlock pb = new ParameterBlock();
pb = new ParameterBlock();
pb.addSource(planImg);
pb.add(resizeFactor);
pb.add(resizeFactor);
pb.add(0.0f);
pb.add(0.0f);
pb.add(new InterpolationNearest());
RenderedOp img = JAI.create("scale", pb, null);
return img;
}