MapWinGIS:AxMap ShapeFillTransparency

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

ShapeFillTransparency


Gets or sets the percentage of fill trancparency for the specified layer. Only works on polygon shapefiles.


VB.NET Usage

Property set_ShapeFillTransparency(LayerHandle As Integer, Shape As Integer, param0 as Single
)

            Parameters

LayerHandle

Handle of the layer containing the shape for which the fill transparency is to be set.
Shape Handle of the shape for which the fill transparency is to be set.

param0

Sets the percentage of fill transparency for the specified shape.

Property get_ShapeFillTransparency(LayerHandle As Integer, Shape As Integer) As Single
            Parameters

LayerHandle

Handle of the layer containing the shape for which the fill transparency is required..
Shape Handle of the shape for which the fill transparency is required.

Return Value

Gets the percentage of fill transparency for the specified shape.

Sample Code

    Private Sub FillTransparency()
        Dim hnd As Integer
        Dim percent As Short
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the fill transparency percentage of shape 0 in the layer
        percent = Map1.get_ShapeFillTransparency(hnd, 0)
        percent = 50
        'Set the fill transparency percentage of shape 0 in the layer
        Map1.set_ShapeFillTransparency(hnd, 0, percent)
    End Sub
  

VB 6 Usage

Property ShapeFillTransparency(LayerHandle As Long, Shape As Long) As Single


            Parameters

LayerHandle Handle of the layer.
Shape Handle of the shape.
Return Value Gets the percentage of the fill transparency for the specified shape.

Sample Code

    Private Sub FillTransparency()
        Dim hnd As Long
        Dim percent As Single
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the fill transparency percentage of shape 0 in the layer
        percent = Map1.ShapeFillTransparency(hnd, 0)
        percent = 50
        'Set the fill transparency percentage of shape 0 in the layer
        Map1.ShapeFillTransparency(hnd, 0) = percent
    End Sub

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

This page has been accessed 1,946 times. This page was last modified on 9 October 2006, at 21:46.