Examples of InterpolationNearest


Examples of javax.media.jai.InterpolationNearest

        case _BILINEAR:
            parameters.add(new InterpolationBilinear(_subSampleBits));
            break;

        case _NEARESTNEIGHBOR:
            parameters.add(new InterpolationNearest());
            break;

        default:
            throw new IllegalActionException(
                    "Invalid value for interpolationType");
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        case _BILINEAR:
            parameters.add(new InterpolationBilinear(_subSampleBits));
            break;

        case _NEARESTNEIGHBOR:
            parameters.add(new InterpolationNearest());
            break;

        default:
            throw new IllegalActionException(
                    "Invalid value for interpolationType");
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        case _BILINEAR:
            parameters.add(new InterpolationBilinear(_subSampleBits));
            break;

        case _NEARESTNEIGHBOR:
            parameters.add(new InterpolationNearest());
            break;

        default:
            throw new IllegalActionException(
                    "Invalid value for interpolationType");
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        ParameterBlock pb = new ParameterBlock();
        pb.addSource(image);
        pb.add(0.0F);
        pb.add(0.0F);
        pb.add(t_angle);
        pb.add(new InterpolationNearest());
        return JAI.create("Rotate", pb, null);
    }
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        if ((mx < 0) || (my < 0)) {
            ParameterBlock pb = new ParameterBlock();
            pb.addSource(im);
            pb.add((float)Math.max(-mx, 0));
            pb.add((float)Math.max(-my, 0));
            pb.add(new InterpolationNearest());
            im = JAI.create("translate", pb, null);
        }

        this.sampleModel = im.getSampleModel();
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

       
        WarpPerspective warp = new WarpPerspective(perspectiveTransform);
        ParameterBlock pm = new ParameterBlock();
        pm.addSource(srcImage);
        pm.add(warp);
        pm.add(new InterpolationNearest());
       
        RenderedImage dstImage = JAI.create("warp", pm);
       
        return dstImage;
       
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        ParameterBlock pb = new ParameterBlock();
        pb.addSource(image);
        pb.add(0.0F);
        pb.add(0.0F);
        pb.add(tAngle);
        pb.add(new InterpolationNearest());
        return JAI.create("Rotate", pb, null);
    }
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

/* 129 */     if ((mx < 0) || (my < 0)) {
/* 130 */       ParameterBlock pb = new ParameterBlock();
/* 131 */       pb.addSource(this.im);
/* 132 */       pb.add(Math.max(-mx, 0));
/* 133 */       pb.add(Math.max(-my, 0));
/* 134 */       pb.add(new InterpolationNearest());
/* 135 */       this.im = JAI.create("translate", pb, null);
/*     */     }
/*     */
/* 138 */     this.sampleModel = this.im.getSampleModel();
/*     */
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

        ParameterBlock pb = new ParameterBlock();
        pb.addSource(image);
        pb.add(0.0F);
        pb.add(0.0F);
        pb.add(tAngle);
        pb.add(new InterpolationNearest());
        return JAI.create("Rotate", pb, null);
    }
View Full Code Here

Examples of javax.media.jai.InterpolationNearest

    parameterBlock.add(yScale);
    parameterBlock.add(yScale);
    parameterBlock.add(0.0F);
    parameterBlock.add(0.0F);
    if (!highQuality) {
      parameterBlock.add(new InterpolationNearest());
    } else {
      parameterBlock.add(new InterpolationBicubic2(8));
    }
    this.image = JAI.create("scale", parameterBlock, RENDERING_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.