Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
ShapeFile..::.Render Method (Graphics, Size, PointF, Single)
ShapeFile Class See Also Send Feedback

Renders the shapefile centered at given point and zoom

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

# Syntax

Visual Basic (Declaration)
    Public Sub Render ( _
    	graphics As Graphics, _
    	clientArea As Size, _
    	centre As PointF, _
    	zoom As Single _
    )

C#
    public void Render(
    	Graphics graphics,
    	Size clientArea,
    	PointF centre,
    	float zoom
    )

Visual C++
    public:
    void Render(
    	Graphics^ graphics,
    	Size clientArea,
    	PointF centre,
    	float zoom
    )

#### 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: System.Drawing..::.PointF
  The centre point in the ShapeFiles coordinates

zoom
  Type: System..::.Single
  The scaling to apply

# 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

ShapeFile Class
Render Overload
EGIS.ShapeFileLib Namespace