Examples of renderImage()


Examples of org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage()

        GridCoverageRenderer renderer = new GridCoverageRenderer(
                mapExtent.getCoordinateReferenceSystem(), mapExtent, screenSize, w2s);

        RasterSymbolizer rasterSymbolizer = buildRainColorMap();

        RenderedImage image = renderer.renderImage(rainReader, null, rasterSymbolizer, Interpolation.getInstance(Interpolation.INTERP_NEAREST),
                Color.RED, 256, 256);
        assertNotNull(image);
        File reference = new File(
                "src/test/resources/org/geotools/renderer/lite/gridcoverage2d/polar_touchdateline.png");
        ImageAssert.assertEquals(reference, image, 0);
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage()

                        interpolation, readerBgColor);
                final GridCoverageRenderer gcr = new GridCoverageRenderer(mapEnvelope.getCoordinateReferenceSystem(), mapEnvelope,
                        mapRasterArea, worldToScreen, interpolationHints);
                gcr.setAdvancedProjectionHandlingEnabled(true);
                gcr.setWrapEnabled(DefaultWebMapService.isContinuousMapWrappingEnabled());
                image = gcr.renderImage(reader, readParameters, symbolizer, interpolation,
                        mapContent.getBgColor(), tileSizeX, tileSizeY);
                if (image == null) {
                    // we're outside of the coverage definition area, return an empty space
                    image = createBkgImage(mapWidth, mapHeight, bgColor, null);
                }
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage()

                final GridCoverageRenderer gcr = new GridCoverageRenderer(mapCRS,
                        ReferencedEnvelope.reference(readGG.getEnvelope()),
                        readGG.getGridRange2D(), worldToScreen, interpolationHints);

                // create a solid color empty image
                image = gcr.renderImage(coverage, symbolizer, interpolation,
                        mapContent.getBgColor(), tileSizeX, tileSizeY);
            }
        } catch (Throwable e) {
            throw new ServiceException(e);
        }
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage()

                                new RenderingHints(JAI.KEY_INTERPOLATION,interpolation));    
                    }

                   
                    // create a solid color empty image
                    image = gcr.renderImage(coverage, symbolizer, interpolation,
                            mapContext.getBgColor(), tileSizeX, tileSizeY);
                }
            } finally {
                // once the final image is rendered we need to clean up the planar image chain
                // that the coverage references to
View Full Code Here

Examples of org.infoglue.deliver.util.graphics.AdvancedImageRenderer.renderImage()

                    String attribute = cdc.getContentAttribute(getDatabase(), contentVersionVO, attributeName, false );
                    imageRenderer.setAttribute( attributeName.toLowerCase(), attribute );
                }
            }
            // render the image
            imageRenderer.renderImage( text, renderAttributes );
           
            String fileName = uniqueId + "." + imageRenderer.getImageFormatName()// default is png
            // write the result
            assetUrl = writeRenderedImage( imageRenderer, fileName );
        }
View Full Code Here

Examples of org.infoglue.deliver.util.graphics.AdvancedImageRenderer.renderImage()

            uniqueId.append( "_" + Math.abs( text.hashCode() ) );
            uniqueId.append( "_" + ( renderAttributes != null ? Math.abs( renderAttributes.hashCode() ) : 4711 ) );

            AdvancedImageRenderer imageRenderer = new AdvancedImageRenderer();
            // render the image
            imageRenderer.renderImage( text, renderAttributes );
            if( distort )
            {
              uniqueId = new StringBuffer( "igcaptcha" );
                uniqueId.append( "_" + Math.abs( text.hashCode() ) );
                uniqueId.append( "_" + ( renderAttributes != null ? Math.abs( renderAttributes.hashCode() ) : 4711 ) );
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.