Examples of ParameterBlockJAI


Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

                                    Integer yPeriod,
                                    int[] numBins,
                                    double[] lowValue,
                                    double[] highValue,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Histogram",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("roi", roi);
        pb.setParameter("xPeriod", xPeriod);
        pb.setParameter("yPeriod", yPeriod);
        pb.setParameter("numBins", numBins);
        pb.setParameter("lowValue", lowValue);
        pb.setParameter("highValue", highValue);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

    public static RenderedOp create(RenderedImage source0,
                                    OutputStream stream,
                                    String format,
                                    ImageEncodeParam param,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Encode",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("stream", stream);
        pb.setParameter("format", format);
        pb.setParameter("param", param);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);

        pb.setParameter("constants", constants);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);

        pb.setParameter("constants", constants);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

     */
    public static RenderedOp create(RenderedImage source0,
                                    double[] low,
                                    double[] high,
                                    RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Clamp",
                                  RenderedRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("low", low);
        pb.setParameter("high", high);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

     */
    public static RenderableOp createRenderable(RenderableImage source0,
                                                double[] low,
                                                double[] high,
                                                RenderingHints hints)  {
        ParameterBlockJAI pb =
            new ParameterBlockJAI("Clamp",
                                  RenderableRegistryMode.MODE_NAME);

        pb.setSource("source0", source0);

        pb.setParameter("low", low);
        pb.setParameter("high", high);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);
        pb.setSource("source1", source1);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);
        pb.setSource("source1", source1);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);

        pb.setParameter("constants", constants);

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

Examples of com.lightcrafts.mediax.jai.ParameterBlockJAI

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

        pb.setSource("source0", source0);

        pb.setParameter("constants", constants);

        return JAI.createRenderable("XorConst", pb, hints);
    }
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.