MapWinGIS:Extents SetBounds

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

SetBounds

Sets the bounds for the extents object.


VB.NET Usage

Sub SetBounds(xMin As Double, yMin As Double, zMin As Double, xMax As Double, yMax As Double, zMax As Double)

            Parameters

xMin

The new minimum x value for the bounds of the extents object.
yMin The new minimum y value for the bounds of the extents object.
zMin The new minimum z value for the bounds of the extents object.
xMax The new maximum x value for the bounds of the extents object.
yMax The new maximum y value for the bounds of the extents object.
zMax The new maximum z value for the bounds of the extents object.

Sample Code

    Private Sub ExtentsSetBounds()
        Dim extents As New MapWinGIS.Extents()
        Dim xMin As Double, yMin As Double, zMin As Double, xMax As Double, yMax As Double, zMax As Double
        'Set the minimum and maximum values for the x, y, and z bounds values
        xMin = 100
        yMin = 100
        zMin = 0
        xMax = 500
        yMax = 500
        zMax = 0
        'Set the bounds of the extents object
        extents.SetBounds(xMin, yMin, zMin, xMax, yMax, zMax)
    End Sub
  

VB 6 Usage
Sub SetBounds(xMin As Double, yMin As Double, zMin As Double, xMax As Double, yMax As Double, zMax As Double)
            Parameters

xMin

The new minimum x value for the bounds of the extents object.
yMin The new minimum y value for the bounds of the extents object.
zMin The new minimum z value for the bounds of the extents object.
xMax The new maximum x value for the bounds of the extents object.
yMax The new maximum y value for the bounds of the extents object.
zMax The new maximum z value for the bounds of the extents object.

Sample Code

    Private Sub ExtentsSetBounds()
        Dim extents As New MapWinGIS.extents
        Dim xMin As Double, yMin As Double, zMin As Double, xMax As Double, yMax As Double, zMax As Double
        'Set the minimum and maximum values for the x, y, and z bounds values
        xMin = 100
        yMin = 100
        zMin = 0
        xMax = 500
        yMax = 500
        zMax = 0
        'Set the bounds of the extents object
        extents.SetBounds xMin, yMin, zMin, xMax, yMax, zMax
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Extents_SetBounds"

This page has been accessed 3,027 times. This page was last modified on 9 November 2005, at 16:18.