Package javax.media.jai

Examples of javax.media.jai.ParameterBlockJAI


    public static RenderedOp create(RenderedImage source0,
                                    Float xTrans,
                                    Float yTrans,
                                    Interpolation interpolation,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Translate",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("xTrans", xTrans);
        pb.setParameter("yTrans", yTrans);
        pb.setParameter("interpolation", interpolation);

        return JAI.create("Translate", pb, hints);
    }
View Full Code Here


    public static RenderableOp createRenderable(RenderableImage source0,
                                                Float xTrans,
                                                Float yTrans,
                                                Interpolation interpolation,
                                                RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Translate",
                                  RenderableRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("xTrans", xTrans);
        pb.setParameter("yTrans", yTrans);
        pb.setParameter("interpolation", interpolation);

        return JAI.createRenderable("Translate", pb, hints);
    }
View Full Code Here

                                    Integer width,
                                    Integer height,
                                    Integer xKey,
                                    Integer yKey,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("BoxFilter",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("width", width);
        pb.setParameter("height", height);
        pb.setParameter("xKey", xKey);
        pb.setParameter("yKey", yKey);

        return JAI.create("BoxFilter", pb, hints);
    }
View Full Code Here

     */
    public static RenderedOp create(RenderedImage source0,
                                    Integer shiftX,
                                    Integer shiftY,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("PeriodicShift",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("shiftX", shiftX);
        pb.setParameter("shiftY", shiftY);

        return JAI.create("PeriodicShift", pb, hints);
    }
View Full Code Here

     */
    public static RenderableOp createRenderable(RenderableImage source0,
                                                Integer shiftX,
                                                Integer shiftY,
                                                RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("PeriodicShift",
                                  RenderableRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("shiftX", shiftX);
        pb.setParameter("shiftY", shiftY);

        return JAI.createRenderable("PeriodicShift", pb, hints);
    }
View Full Code Here

     * @return The <code>RenderedOp</code> destination.
     * @throws IllegalArgumentException if <code>awtImage</code> is <code>null</code>.
     */
    public static RenderedOp create(Image awtImage,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("AWTImage",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setParameter("awtImage", awtImage);

        return JAI.create("AWTImage", pb, hints);
    }
View Full Code Here

     * @throws IllegalArgumentException if <code>table</code> is <code>null</code>.
     */
    public static RenderedOp create(RenderedImage source0,
                                    LookupTableJAI table,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Lookup",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("table", table);

        return JAI.create("Lookup", pb, hints);
    }
View Full Code Here

     * @throws IllegalArgumentException if <code>table</code> is <code>null</code>.
     */
    public static RenderableOp createRenderable(RenderableImage source0,
                                                LookupTableJAI table,
                                                RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Lookup",
                                  RenderableRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("table", table);

        return JAI.createRenderable("Lookup", pb, hints);
    }
View Full Code Here

     */
    public static RenderedOp create(String filename,
                                    ImageDecodeParam param,
                                    Boolean checkFileLocally,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("FileLoad",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setParameter("filename", filename);
        pb.setParameter("param", param);
        pb.setParameter("checkFileLocally", checkFileLocally);

        return JAI.create("FileLoad", pb, hints);
    }
View Full Code Here

     * @return The <code>RenderedOp</code> destination.
     * @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
     */
    public static RenderedOp create(RenderedImage source0,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Magnitude",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        return JAI.create("Magnitude", pb, hints);
    }
View Full Code Here

TOP

Related Classes of javax.media.jai.ParameterBlockJAI

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.