Renders the shapefile centered at given point and zoom

Namespace:  EGIS.ShapeFileLib
Assembly:  EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

Syntax

Visual Basic
Public Sub Render ( _
	graphics As Graphics, _
	clientArea As Size, _
	centre As PointD, _
	zoom As Double, _
	projectionType As ProjectionType _
)
C#
public void Render(
	Graphics graphics,
	Size clientArea,
	PointD centre,
	double zoom,
	ProjectionType projectionType
)
Visual C++
public:
void Render(
	Graphics^ graphics, 
	Size clientArea, 
	PointD centre, 
	double zoom, 
	ProjectionType projectionType
)
JavaScript
function render(graphics, clientArea, centre, zoom, projectionType);

Parameters

graphics
Type: System.Drawing..::..Graphics
The Graphics device to render to
clientArea
Type: System.Drawing..::..Size
The client area in pixels to draw
centre
Type: EGIS.ShapeFileLib..::..PointD
The centre point in the ShapeFiles coordinates
zoom
Type: System..::..Double
The scaling to apply
projectionType
Type: EGIS.ShapeFileLib..::..ProjectionType
The Map Projection to use when rendering the shapefile

Remarks

If zoom is 1 and the width of the ShapeFile's extent is N units wide, then the ShapeFile wil be rendered N pixels wide. If zoom is 2 then shapefile will be rendered 2N pixels wide

See Also