Package com.sun.media.jai.opimage

Examples of com.sun.media.jai.opimage.TranslateIntOpImage


                // Translate image and return it
    // TranslateIntOpImage can't deal with ImageLayout hint
    if (layout == null) {
        OpImage intermediateImage =
                        new TranslateIntOpImage(trans,
                                                hints,
                                                rotMinX - imMinX,
                                                rotMinY - imMinY);
                    try {
                        return new PointMapperOpImage(intermediateImage,
View Full Code Here


  if (xScale == 1.0F && yScale == 1.0F &&
      (Math.abs(xTrans - (int)xTrans) < TOLERANCE) &&
      (Math.abs(yTrans - (int)yTrans) < TOLERANCE) &&
      layout == null) { // TranslateIntOpImage can't deal with ImageLayout hint
      /* It's a integer translate. */
            return new TranslateIntOpImage(source,
             hints,
             (int)xTrans,
             (int)yTrans);
  }

View Full Code Here

  ImageLayout layout = RIFUtil.getImageLayoutHint(hints);

        if ((Math.abs(xTrans - (int)xTrans) < TOLERANCE) &&
            (Math.abs(yTrans - (int)yTrans) < TOLERANCE) &&
      layout == null) { // TranslateIntOpImage can't deal with ImageLayout hint
            return new TranslateIntOpImage(source,
             hints,
                                           (int)xTrans,
                                           (int)yTrans);
        } else {
           
View Full Code Here

            (tr[1] == 0.0) &&
            (Math.abs(tr[4] - (int) tr[4]) < TOLERANCE) &&
            (Math.abs(tr[5] - (int) tr[5]) < TOLERANCE) &&
      layout == null) { // TranslateIntOpImage can't deal with ImageLayout hint
            /* It's a integer translate. */
            return new TranslateIntOpImage(source,
             hints,
                                           (int)tr[4],
                                           (int)tr[5]);
        }

View Full Code Here

/*     */
/*  69 */     ImageLayout layout = RIFUtil.getImageLayoutHint(hints);
/*     */
/*  71 */     if ((Math.abs(xTrans - (int)xTrans) < 0.01F) && (Math.abs(yTrans - (int)yTrans) < 0.01F) && (layout == null))
/*     */     {
/*  74 */       return new TranslateIntOpImage(source, hints, (int)xTrans, (int)yTrans);
/*     */     }
/*     */
/*  80 */     if ((!MediaLibAccessor.isMediaLibCompatible(args, layout)) || (!MediaLibAccessor.hasSameNumBands(args, layout)) || (source.getTileWidth() >= 32768) || (source.getTileHeight() >= 32768))
/*     */     {
/*  86 */       return null;
View Full Code Here

/*     */
/* 146 */         int imMinX = trans.getMinX();
/* 147 */         int imMinY = trans.getMinY();
/*     */
/* 151 */         if (layout == null) {
/* 152 */           return new TranslateIntOpImage(trans, hints, rotMinX - imMinX, rotMinY - imMinY);
/*     */         }
/*     */
/* 157 */         ParameterBlock pbScale = new ParameterBlock();
/* 158 */         pbScale.addSource(trans);
/* 159 */         pbScale.add(0.0F);
View Full Code Here

/* 108 */       return new MlibCopyOpImage(source, hints, layout);
/*     */     }
/*     */
/* 113 */     if ((xScale == 1.0F) && (yScale == 1.0F) && (Math.abs(xTrans - (int)xTrans) < 0.01F) && (Math.abs(yTrans - (int)yTrans) < 0.01F) && (layout == null))
/*     */     {
/* 118 */       return new TranslateIntOpImage(source, hints, (int)xTrans, (int)yTrans);
/*     */     }
/*     */
/* 124 */     if ((interp instanceof InterpolationNearest)) {
/* 125 */       return new MlibScaleNearestOpImage(source, extender, hints, layout, xScale, yScale, xTrans, yTrans, interp);
/*     */     }
View Full Code Here

/* 118 */       return new MlibCopyOpImage(source, hints, layout);
/*     */     }
/*     */
/* 128 */     if ((tr[0] == 1.0D) && (tr[3] == 1.0D) && (tr[2] == 0.0D) && (tr[1] == 0.0D) && (Math.abs(tr[4] - (int)tr[4]) < 0.009999999776482582D) && (Math.abs(tr[5] - (int)tr[5]) < 0.009999999776482582D) && (layout == null))
/*     */     {
/* 136 */       return new TranslateIntOpImage(source, hints, (int)tr[4], (int)tr[5]);
/*     */     }
/*     */
/* 147 */     if ((tr[0] > 0.0D) && (tr[2] == 0.0D) && (tr[1] == 0.0D) && (tr[3] > 0.0D))
/*     */     {
/* 152 */       if ((interp instanceof InterpolationNearest)) {
View Full Code Here

TOP

Related Classes of com.sun.media.jai.opimage.TranslateIntOpImage

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.