Package com.sun.media.jai.opimage

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


  // When scaling by 1.0 in both x and y, a copy is all we need
  if (xScale == 1.0F && yScale == 1.0F){
            // Use CopyOpImage as MlibCopyOpImage doesn't handle
            // binary-to-gray case.
      return new CopyOpImage(source, hints, layout);
  }

  return new MlibSubsampleBinaryToGrayOpImage(source,
                layout,
                hints,
View Full Code Here


/*  91 */     float xScale = args.getFloatParameter(0);
/*  92 */     float yScale = args.getFloatParameter(1);
/*     */
/*  95 */     if ((xScale == 1.0F) && (yScale == 1.0F))
/*     */     {
/*  98 */       return new CopyOpImage(source, hints, layout);
/*     */     }
/*     */
/* 101 */     return new MlibSubsampleBinaryToGrayOpImage(source, layout, hints, xScale, yScale);
/*     */   }
View Full Code Here

TOP

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

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.