Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 安装本机JAI,获得黑线_Java_Jai - Fatal编程技术网

Java 安装本机JAI,获得黑线

Java 安装本机JAI,获得黑线,java,jai,Java,Jai,当我安装本机JAI时,我的缩放图像中会出现黑线。有人知道如何避免这种情况吗 ParameterBlockJAI pb = new ParameterBlockJAI("scale"); pb.addSource(image); pb.setParameter("xScale", (float) from.getScale()); pb.s

当我安装本机JAI时,我的缩放图像中会出现黑线。有人知道如何避免这种情况吗

                    ParameterBlockJAI pb = new ParameterBlockJAI("scale");
                    pb.addSource(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);

我将本机JAI更新为最新的每日版本,问题消失了。下载自

可能是其中一个bug或#120