Package javax.media.jai

Examples of javax.media.jai.AreaOpImage


            // Determine the effective destination bounds.
            Rectangle dstBounds = null;
            PlanarImage dst = op.getRendering();
            if(dst instanceof AreaOpImage &&
               ((AreaOpImage)dst).getBorderExtender() == null) {
                AreaOpImage aoi = (AreaOpImage)dst;
                dstBounds =
                    new Rectangle(aoi.getMinX() + aoi.getLeftPadding(),
                                  aoi.getMinY() + aoi.getTopPadding(),
                                  aoi.getWidth() -
                                  aoi.getLeftPadding() -
                                  aoi.getRightPadding(),
                                  aoi.getHeight() -
                                  aoi.getTopPadding() -
                                  aoi.getBottomPadding());
            } else {
                dstBounds = dst.getBounds();
            }

            // If necessary, clip the ROI to the destination bounds.
View Full Code Here


/*    */
/* 65 */       Rectangle dstBounds = null;
/* 66 */       PlanarImage dst = op.getRendering();
/* 67 */       if (((dst instanceof AreaOpImage)) && (((AreaOpImage)dst).getBorderExtender() == null))
/*    */       {
/* 69 */         AreaOpImage aoi = (AreaOpImage)dst;
/* 70 */         dstBounds = new Rectangle(aoi.getMinX() + aoi.getLeftPadding(), aoi.getMinY() + aoi.getTopPadding(), aoi.getWidth() - aoi.getLeftPadding() - aoi.getRightPadding(), aoi.getHeight() - aoi.getTopPadding() - aoi.getBottomPadding());
/*    */       }
/*    */       else
/*    */       {
/* 80 */         dstBounds = dst.getBounds();
/*    */       }
View Full Code Here

TOP

Related Classes of javax.media.jai.AreaOpImage

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.