开发者

Installed native JAI, getting black lines

When I install native JAI I get black lines in my scaled images. Does anyone know how to avoid this?

                    ParameterBlockJAI pb = new ParameterBlockJAI("scale");
                    pb.addSour开发者_开发问答ce(image);
                    pb.setParameter("xScale", (float) from.getScale());
                    pb.setParameter("yScale", (float) from.getScale());
                    pb.setParameter("xTrans", 0.0F);
                    pb.setParameter("yTrans", 0.0F);
                    pb.setParameter("interpolation", new InterpolationNearest());
                    resultingImage = JAI.create("scale", SubsampleAverageDescriptor.create(resultingImage, from.getScale(), from.getScale(), new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY)), null);

Installed native JAI, getting black lines


I updated native JAI to the latest daily build and the problem went away. Downloaded from daily builds


Maybe it’s one of the bugs #82 or #120?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜