class Image extends Renderer<BufferedImage>
A Renderer that draws a Map to a BufferedImage.
import java.awt.image.* import geoscript.render.* import geoscript.layer.* import geoscript.style.* Map map = new Map(layers:[new Shapefile("states.shp")]) Image image = new Image("png") BufferedImage img = image.render(map)
Constructor and description |
---|
Image
(java.lang.String type) Create a new Image |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getImageType() Get the image type |
|
java.awt.image.BufferedImage |
render(Map map) Render the Map to a BufferedImage |
|
void |
render(Map map, java.io.OutputStream out) Render the Map to the OutputStream |
Get the image type
Render the Map to a BufferedImage
map
- The MapRender the Map to the OutputStream
map
- The Mapout
- The OuptuStream