ReprojectionServiceGetImageStream Method (MapRectangle, Size, Boolean, Boolean) |
Loads a map image using the specified bounding box and size.
Namespace:
Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax protected virtual Stream GetImageStream(
MapRectangle targetMapRectangle,
Size targetSize,
bool reproject,
bool includeGrid
)
Protected Overridable Function GetImageStream (
targetMapRectangle As MapRectangle,
targetSize As Size,
reproject As Boolean,
includeGrid As Boolean
) As Stream
protected:
virtual Stream^ GetImageStream(
MapRectangle targetMapRectangle,
Size targetSize,
bool reproject,
bool includeGrid
)
abstract GetImageStream :
targetMapRectangle : MapRectangle *
targetSize : Size *
reproject : bool *
includeGrid : bool -> Stream
override GetImageStream :
targetMapRectangle : MapRectangle *
targetSize : Size *
reproject : bool *
includeGrid : bool -> Stream
Parameters
- targetMapRectangle
- Type: Ptv.XServer.Controls.Map.Tools.ReprojectionMapRectangle
Requested bounding box, based on the CRS defined by this class. - targetSize
- Type: System.DrawingSize
Requested image size in pixels. - reproject
- Type: SystemBoolean
See remarks. - includeGrid
- Type: SystemBoolean
If set to true, renders the re-projection grid into the returned image. Used for debugging purposes.
Return Value
Type:
Stream The stream containing the map image.
Remarks For debugging purposes, re-projection can be suppressed by setting the reproject parameter to false.
See Also