Examples of OpImage


Examples of javax.media.jai.OpImage

                    // ignore the exception.
                    canAttemptRecovery = false;
                }
            }

            OpImage image = null;
            try {
                // Attempt to create an OpImage from the decoder image.
                image = new DisposableNullOpImage(dec.decodeAsRenderedImage(page),
                                                  layout,
                                                  renderHints,
                                                  bound);
            } catch(OutOfMemoryError memoryError) {
                // Ran out of memory - may be due to the decoder being
                // obliged to read the entire image when it creates the
                // RenderedImage it returns.
                if(canAttemptRecovery) {
                    // First flush the cache if one is defined.
                    TileCache cache = image != null ?
                        image.getTileCache() :
                        RIFUtil.getTileCacheHint(renderHints);
                    if(cache != null) {
                        cache.flush();
                    }
View Full Code Here

Examples of javax.media.jai.OpImage

                int imMinY = trans.getMinY();

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

Examples of javax.media.jai.OpImage

/*      */
/*      */   public Rectangle mapSourceRect(Long id, Rectangle sourceRect, int sourceIndex)
/*      */     throws RemoteException
/*      */   {
/* 1145 */     RenderedOp op = (RenderedOp)nodes.get(id);
/* 1146 */     OpImage rendering = (OpImage)op.getRendering();
/* 1147 */     return rendering.mapSourceRect(sourceRect, sourceIndex);
/*      */   }
View Full Code Here

Examples of javax.media.jai.OpImage

/*      */
/*      */   public Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)
/*      */     throws RemoteException
/*      */   {
/* 1165 */     RenderedOp op = (RenderedOp)nodes.get(id);
/* 1166 */     OpImage rendering = (OpImage)op.getRendering();
/* 1167 */     return rendering.mapDestRect(destRect, sourceIndex);
/*      */   }
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.