MapWinGIS:AxMap ShapeLayerFillTransparency

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

ShapeLayerFillTransparency


Gets the level of opacity (0 to 1) of the fill for the specified layer. Only works on polygon shapefiles.


VB.NET Usage

Property set_ShapeLayerFillTransparency(LayerHandle As Integer, param0 as Single
)

            Parameters

LayerHandle

Handle of the layer for which the fill opacity is to be set.

param0

Sets the level of opacity (0 to 1) of the fill transparency for the specified layer.

Property get_ShapeLayerFillTransparency(LayerHandle As Integer) As Single
            Parameters

LayerHandle

Handle of the layer to get percentage of fill transparency.

Return Value

Gets the level of opacity (0 to 1) of the fill for the specified layer.

Sample Code

    Private Sub FillTransparency()
        Dim hnd As Integer
        Dim percentOpacity As Single
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the fill transparency percentage of layer 0 in Map1
        percentOpacity = Map1.get_ShapeLayerFillTransparency(hnd) * 100
        percentOpacity = 25
        'Set the fill transparency percentage of layer 0 in Map1
        Map1.set_ShapeLayerFillTransparency(hnd, percentOpacity / 100 )
    End Sub
  

VB 6 Usage

Property ShapeLayerFillTransparency(LayerHandle As Long) As Single


            Parameters

LayerHandle Handle of the layer.
Return Value Gets the level of opacity (0 to 1) of the fill for the specified layer.

Sample Code

    Private Sub FillTransparency()
        Dim hnd As Long
        Dim percentOpacity As Single
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the fill transparency percentage of layer 0 in Map1
        percentOpacity = Map1.ShapeLayerFillTransparency(hnd) * 100
        percentOpacity = 25
        'Set the fill transparency percentage of layer 0 in Map1
        Map1.ShapeLayerFillTransparency(hnd) = percent / 100
    End Sub

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

This page has been accessed 2,727 times. This page was last modified on 8 August 2007, at 16:26.