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)
ParameterTypeDescription
outputPathAbstractPathPath to the output image.
widthMeasurementWidth of the map.
heightMeasurementHeight of the map.
rendererRendererRenderer to use.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.

Exceptions

exceptioncondition
ArgumentNullExceptionAny argument null.
IOExceptionAn I/O error occurred.
GisExceptionAn error while processing or reading GIS data.
ArgumentExceptionUnit of width or height is !:Unit.MapUnits.
ArgumentOutOfRangeExceptionWidth 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)
ParameterTypeDescription
outputPathStringPath to the output image.
widthMeasurementWidth of the map.
heightMeasurementHeight of the map.
rendererRendererRenderer to use.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.

Exceptions

exceptioncondition
ArgumentNullExceptionAny argument null.
IOExceptionAn I/O error occurred.
GisExceptionAn error while processing or reading GIS data.
ArgumentExceptionUnit of width or height is !:Unit.MapUnits.
ArgumentOutOfRangeExceptionWidth 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)
ParameterTypeDescription
widthMeasurementWidth of the map.
heightMeasurementHeight of the map.
rendererRendererRenderer to use.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.

Return Value

The image as stream

Exceptions

exceptioncondition
ArgumentNullExceptionAny argument null.
IOExceptionAn I/O error occurred.
GisExceptionAn error while processing or reading GIS data.
ArgumentExceptionUnit of width or height is !:Unit.MapUnits.
ArgumentOutOfRangeExceptionWidth or height is negative or zero.

See Also