MapWinGIS:AxMap UDLineStipple

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

UDLineStipple

This gets or sets the user defined line stipple for the specified layer.

The user defined line stipple is represented by an Integer (VB.NET) or a Long (VB 6). The first digit represents the stipple multiplier. Each of the following digits alternate between representing pixels drawn and pixels skipped in the pattern. The number of pixels to be drawn or skipped are determined by multiplying the digit representing that segment of the stipple by the stipple multiplier.

Example: 23456
This custom line stipple would draw six pixels(2*3), skip eight pixels(2*4), draw ten pixels(2*5), skip twelve pixels(2*6), with the pattern repeating from the beginning after that. The largest valid line stipple is 2147483647. Any value greater than this will result in overflow. A line stipple value less than 111 will result in a solid line.


VB.NET Usage

Property set_UDLineStipple(LayerHandle As Integer, param0 As Integer)

            Parameters

LayerHandle

The handle of the layer for which the user defined shape line stipple is to be set.
param0

The user defined line stipple.

Property get_UDLineStipple(LayerHandle As Integer) As Integer
            Parameters

LayerHandle

The handle of the layer for which the user defined shape line stipple is to be set.
ReturnValue

The user defined line stipple.

Sample Code

    Private Sub UDLineStipple()
        Dim hndl As Integer, cust_stipple As Integer
        'Get the layer handle for the layer at position 0
        hndl = Map1.get_LayerHandle(0)
        'Set the custom line stipple
        cust_stipple = 2147483647
        'Set the shape line stipple to custom for the specified layer
        Map1.set_ShapeLayerLineStipple(hndl, MapWinGIS.tkLineStipple.lsCustom)
        'Set the user defined shape line stipple for the specified layer
        Map1.set_UDLineStipple(hndl, cust_stipple)
        'Get the user defined shape line stipple for the specified layer
        cust_stipple = Map1.get_UDLineStipple(hndl)
    End Sub
  

VB 6 Usage
Property UDLineStipple(LayerHandle As Long) As Long
            Parameters

LayerHandle

The handle of the layer for which the user defined shape line stipple is to be set.
ReturnValue

The user defined line stipple.

Sample Code

    Private Sub UDLineStipple()
        Dim hndl As Long, cust_stipple As Long
        'Get the layer handle for the layer at position 0
        hndl = Map1.LayerHandle(0)
        'Set the custom line stipple
        cust_stipple = 23456
        'Set the shape line stipple to custom for the specified layer
        Map1.ShapeLayerLineStipple(hndl) = lsCustom
        'Set the user defined shape line stipple for the specified layer
        Map1.UDLineStipple(hndl) = cust_stipple
        'Get the user defined shape line stipple for the specified layer
        cust_stipple = Map1.UDLineStipple(hndl)
    End Sub

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

This page has been accessed 1,306 times. This page was last modified on 9 November 2005, at 19:07.