Package com.gi.engine.carto

Examples of com.gi.engine.carto.RenderParam


      // Check if export format support transparent
      boolean supportTransparent = false;
      if (lowFormat.startsWith("png")) {
        supportTransparent = true;
      }
      RenderParam fixedRenderParam = renderParam.clone();
      fixedRenderParam.setTransparent(renderParam.isTransparent()
          && supportTransparent);

      // Create BufferedImage
      BufferedImage image = this.render(fixedRenderParam);
View Full Code Here


          double xmin = originX + deltaX * colMin;
          double ymax = originY - deltaY * rowMin;
          double xmax = xmin + deltaX * createSpread;
          double ymin = ymax - deltaY * createSpread;

          RenderParam renderParam = new RenderParam();
          renderParam.setAntiAlias(mapService.getMapDesc()
              .isAntiAlias());
          CoordinateReferenceSystem crs = SpatialReferenceManager
              .wkidToCRS(sr, true);
          ReferencedEnvelope extent = new ReferencedEnvelope(xmin,
              xmax, ymin, ymax, crs);
          renderParam.setExtent(extent);
          renderParam.setImageHeight(createSpread * height);
          renderParam.setImageWidth(createSpread * width);
          renderParam.setTransparent(supportTransparent);

          // Get spread image
          MapImage mapImage = map.render(renderParam);
          BufferedImage image = mapImage.getImage();

View Full Code Here

            }
          }
        }

        // Handle export
        RenderParam renderParam = new RenderParam();
        renderParam.setAntiAlias(mapDesc.isAntiAlias());
        renderParam.setExtent(env);
        renderParam.setImageHeight(height);
        renderParam.setImageWidth(width);
        renderParam.setLayerDefs(mapLayerDefs);
        renderParam.setTransparent(Boolean.parseBoolean(transparent));
        renderParam.setVisibleLayerIds(layerIds);

        byte[] image = null;
        double scale = 0;
        MapServiceInstance instance = (MapServiceInstance) mapService
            .getMapServicePool().checkoutIdleInstance();
View Full Code Here

TOP

Related Classes of com.gi.engine.carto.RenderParam

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.