Examples of ROIShape


Examples of javax.media.jai.ROIShape

/*     */       {
/*  96 */         srcBounds = new Rectangle(src.getMinX(), src.getMinY(), src.getWidth(), src.getHeight());
/*     */       }
/*     */
/* 103 */       if (!srcBounds.contains(srcROI.getBounds())) {
/* 104 */         srcROI = srcROI.intersect(new ROIShape(srcBounds));
/*     */       }
/*     */
/* 108 */       float tx = pb.getFloatParameter(0);
/* 109 */       float ty = pb.getFloatParameter(1);
/*     */
/* 112 */       AffineTransform transform = AffineTransform.getTranslateInstance(tx, ty);
/*     */
/* 116 */       ROI dstROI = srcROI.transform(transform);
/*     */
/* 119 */       Rectangle dstBounds = op.getBounds();
/*     */
/* 122 */       if (!dstBounds.contains(dstROI.getBounds())) {
/* 123 */         dstROI = dstROI.intersect(new ROIShape(dstBounds));
/*     */       }
/*     */
/* 127 */       return dstROI;
/*     */     }
/*     */
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.