Package javax.media.jai

Examples of javax.media.jai.NullOpImage


                    hints = new RenderingHints((Map)renderHints);
                    hints.remove(JAI.KEY_TILE_CACHE);
                }

                // Only the ColorModel is changing.
                return new NullOpImage(src, layout, hints,
                                       OpImage.OP_IO_BOUND);
            }
        }

  if (isDataTypeChange == true) {
View Full Code Here


/*     */
/* 181 */         im = null;
/*     */       }
/*     */
/* 185 */       if (im != null) {
/* 186 */         return new NullOpImage(im, layout, renderHints, bound);
/*     */       }
/*     */     }
/*     */
/* 190 */     return null;
/*     */   }
View Full Code Here

/* 132 */       if ((hints != null) && (hints.containsKey(JAI.KEY_TILE_CACHE))) {
/* 133 */         hints = new RenderingHints(renderHints);
/* 134 */         hints.remove(JAI.KEY_TILE_CACHE);
/*     */       }
/*     */
/* 138 */       return new NullOpImage(src, layout, hints, 2);
/*     */     }
/*     */
/* 143 */     if (isDataTypeChange == true)
/*     */     {
/* 146 */       if (renderHints == null) {
View Full Code Here

         *          As a slight optimisation, we skip the "Null" operation since such image
         *          may be the result of some operation (e.g. "Colormap").
         */
        RenderedImage image = coverage.image;
        while (image instanceof NullOpImage) {
            final NullOpImage op = (NullOpImage) image;
            if (op.getNumSources() != 1) {
                break;
            }
            image = op.getSourceImage(0);
        }
        final SampleModel           sourceModel = image.getSampleModel();
        final int                      numBands = sourceModel.getNumBands();
        final GridSampleDimension[] sourceBands = coverage.sampleDimensions;
        final GridSampleDimension[] targetBands = sourceBands.clone();
View Full Code Here

         * Gives the color model to the image layout and creates a new image using the Null
         * operation, which merely propagates its first source along the operation chain
         * unmodified (except for the ColorModel given in the layout in this case).
         */
        final ImageLayout layout = new ImageLayout().setColorModel(model);
        final RenderedImage newImage = new NullOpImage(image, layout, null, OpImage.OP_COMPUTE_BOUND);
        final GridCoverage2D target = CoverageFactoryFinder.getGridCoverageFactory(GeoTools.getDefaultHints()).create(
                    visual.getName(), newImage,
                    visual.getCoordinateReferenceSystem2D(),
                    visual.getGridGeometry().getGridToCRS(),
                    bands, new GridCoverage[] { visual }, null);
View Full Code Here

TOP

Related Classes of javax.media.jai.NullOpImage

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.