Cadcorp SIS API Methods

SetViewExtent Method

Description

Sets the visible extents of the current Map Window.

Syntax

Visual Basic
Public Function SetViewExtent( _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal z1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal z2 As Double _
) As Integer

Parameters

x1
The new first x coordinate of the rectangular extents of the view.

y1
The new first y coordinate of the rectangular extents of the view.
 
z1
The new first z coordinate of the rectangular extents of the view.
 
x2
The new second x coordinate of the rectangular extents of the view.
 
y2
The new second y coordinate of the rectangular extents of the view.
 
z2
The new second z coordinate of the rectangular extents of the view.

Remarks

Note: When images are rendered, a single pixel of padding is applied to the top and right of the image, to ensure that map neatlines are not lost. If you are using SetViewExtent to control the coordinates of the corners of rendered images, calculating the coordinates from a desired scale and centre point, you should calculate the extent required on the assumption that the image is one pixel smaller than it will ultimately be drawn.

Available: GEO MM ME MD OD OM OV SISpy

Group:

Example

sis.SetViewExtent (0,0,0,100,100,0)


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).