MapWinGIS:GridColorScheme SetLightSource

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

SetLightSource

Sets the direction of the light source.


VB.NET Usage

Sub SetLightSource(Azimuth As Double, Elevation As Double)

            Parameters

Azimuth

The azimuth heading of the light source. Also known as the compass heading.
Elevation The elevation of the light source.

Sample Code

    Private Sub SetLightSource()
        Dim scheme As New MapWinGIS.GridColorScheme()
        Dim heading As Double, elevation As Double
        'Set the heading to be 010
        heading = 10
        'Set the elevation to be 3000 meters
        elevation = 3000
        'Set the light source using the heading and elevation from above
        scheme.SetLightSource(heading, elevation)
    End Sub
  

VB 6 Usage
Sub SetLightSource(Azimuth As Double, Elevation As Double)
            Parameters

Azimuth

The azimuth heading of the light source. Also known as the compass heading.
Elevation The elevation of the light source.

Sample Code

    Private Sub SetLightSource()
        Dim scheme As New MapWinGIS.GridColorScheme
        Dim heading As Double, elevation As Double
        'Set the heading to be 010
        heading = 10
        'Set the elevation to be 3000 meters
        elevation = 3000
        'Set the light source using the heading and elevation from above
        scheme.SetLightSource heading, elevation
    End Sub

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

This page has been accessed 1,240 times. This page was last modified on 9 November 2005, at 16:38.