Geometry.AsImage
AsImage(AbstractPath, Measurement, Measurement, Renderer, VectorSymbolizer)
Export this geometry to an image representation.
public void AsImage(AbstractPath outputPath, Measurement width, Measurement height,
Renderer renderer, VectorSymbolizer symbolizer = null)
Parameter | Type | Description |
---|
outputPath | AbstractPath | Path to the output image. |
width | Measurement | Width of the map. |
height | Measurement | Height of the map. |
renderer | Renderer | Renderer to use. |
symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If null , default symbolizer is used. |
Exceptions
exception | condition |
---|
ArgumentNullException | Any argument null . |
IOException | An I/O error occurred. |
GisException | An error while processing or reading GIS data. |
ArgumentException | Unit of width or height is !:Unit.MapUnits. |
ArgumentOutOfRangeException | Width or height is negative or zero. |
See Also
AsImage(string, Measurement, Measurement, Renderer, VectorSymbolizer)
Export this geometry to an image representation.
public void AsImage(string outputPath, Measurement width, Measurement height, Renderer renderer,
VectorSymbolizer symbolizer = null)
Parameter | Type | Description |
---|
outputPath | String | Path to the output image. |
width | Measurement | Width of the map. |
height | Measurement | Height of the map. |
renderer | Renderer | Renderer to use. |
symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If null , default symbolizer is used. |
Exceptions
exception | condition |
---|
ArgumentNullException | Any argument null . |
IOException | An I/O error occurred. |
GisException | An error while processing or reading GIS data. |
ArgumentException | Unit of width or height is !:Unit.MapUnits. |
ArgumentOutOfRangeException | Width or height is negative or zero. |
See Also
AsImage(Measurement, Measurement, Renderer, VectorSymbolizer)
Export this geometry to an image representation.
public Stream AsImage(Measurement width, Measurement height, Renderer renderer,
VectorSymbolizer symbolizer = null)
Parameter | Type | Description |
---|
width | Measurement | Width of the map. |
height | Measurement | Height of the map. |
renderer | Renderer | Renderer to use. |
symbolizer | VectorSymbolizer | A symbolizer to use for rendering. If null , default symbolizer is used. |
Return Value
The image as stream
Exceptions
exception | condition |
---|
ArgumentNullException | Any argument null . |
IOException | An I/O error occurred. |
GisException | An error while processing or reading GIS data. |
ArgumentException | Unit of width or height is !:Unit.MapUnits. |
ArgumentOutOfRangeException | Width or height is negative or zero. |
See Also