Renders the shapefile centered at given point and zoom
Namespace:
EGIS.ShapeFileLibAssembly: 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