Package javax.media.jai

Examples of javax.media.jai.ParameterBlockJAI.addSource()


        //
        assertNotNull((OperationDescriptor)
              JAI.getDefaultInstance().getOperationRegistry().
                    getDescriptor(OperationDescriptor.class, "org.geotools.ColorInversion"));
        pbj = new ParameterBlockJAI("org.geotools.ColorInversion");
        pbj.addSource(
            new ImageWorker(image).
              setRenderingHint(JAI.KEY_IMAGE_LAYOUT,
                       new ImageLayout(image).setTileGridXOffset(0).setTileGridYOffset(0).setTileHeight(64).setTileWidth(64)
            ).tile().getRenderedImage()
        );
View Full Code Here


            // changing parameters related to the tiling
            final RenderingHints hints = new RenderingHints(JAI.KEY_IMAGE_LAYOUT, layout);

            // reading the image
            final ParameterBlockJAI pbjFormat = new ParameterBlockJAI("Format");
            pbjFormat.addSource(image);
            pbjFormat.setParameter("dataType", image.getSampleModel().getDataType());

            return JAI.create("Format", pbjFormat, hints);
        }
        return image;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.