Package javax.media.jai

Examples of javax.media.jai.RenderedOp


                                         {"v.width", params[1][i]},
                                         {"v.p", getProtectedArea(
                                             Integer.parseInt(params[1][i]),
                                             params[0][i])}},
                                     true);
            RenderedOp image = JAI.create("ImageRead", ImageIO.createImageInputStream(stream));
            // Create the parameter block.
            PlanarImage dst = null;
            ParameterBlock pb = new ParameterBlock();
            pb.addSource(image);               // Specify the source image
            pb.add(null);                      // No ROI
View Full Code Here


     */

    public void testClipSmallerColorBMPTrueColor()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.COLOURBMP24, 120, "left");
        assertEquals("Image is not true colour", true,
                     TestUtilities.isTrueColour(image));
    }
View Full Code Here

    }

    public void testClipSmallerColorJPEGTrueColor()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.COLOURJPEG24, 120, "left");
        assertEquals("Image is not true colour", true,
                     TestUtilities.isTrueColour(image));
    }
View Full Code Here

    }

    public void testClipSmallerColorTIFFTrueColor()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.COLOURTIFF24, 120, "left");
        assertEquals("Image is not true colour", true,
                     TestUtilities.isTrueColour(image));
    }
View Full Code Here

    }

    public void testClipSmallerColorPNGIndexed()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.COLOURPNG8, 120, "left");
        assertEquals("Image is not indexed", true,
                     TestUtilities.isIndexed(image));
    }
View Full Code Here

    }

    public void testClipSmallerColorGIFIndexed()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.COLOURGIF8, 120, "left");
        assertEquals("Image is not indexed", true,
                     TestUtilities.isIndexed(image));
    }
View Full Code Here

    }

    public void testClipSmallerGreyPNG8Bit()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.GRAYSCALEPNG8, 120, "left");
        assertEquals("Image is not greyscale", true,
                     TestUtilities.isGreyscale(image));
    }
View Full Code Here

    }

    public void testClipSmallerGreyGIF8Bit()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.GREYSCALEGIF8, 120, "left");
        assertEquals("Image is not greyscale", true,
                     TestUtilities.isGreyscale(image));
    }
View Full Code Here

    }

    public void testClipSmallerGreyJPEG8Bit()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.GREYSCALEJPEG8, 120, "left");
        assertEquals("Image is not greyscale", true,
                     TestUtilities.isGreyscale(image));
    }
View Full Code Here

    }

    public void testClipSmallerGreyPNG4Bit()
        throws Throwable, IOException, MalformedURLException {

        RenderedOp image = doClip(OutputImageRules.GRAYSCALEPNG4, 120, "left");
        assertEquals("Image is not greyscale", true,
                     TestUtilities.isGreyscale(image));
    }
View Full Code Here

TOP

Related Classes of javax.media.jai.RenderedOp

Copyright © 2018 www.massapicom. 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.