A Renderer that draws a geoscript.render.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)
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, OutputStream out) Render the Map to the OutputStream
|
Create a new Image
type
- The image typeGet the image type
Render the Map to a BufferedImage
map
- The MapRender the Map to the OutputStream
map
- The Mapout
- The OuptuStream