Skip to content

LinePaint

Namespace: ThinkGeo.Core.Styling

public struct LinePaint

Inheritance object → ValueType → LinePaint

Properties

Color

public GeoColor Color { get; }

Property Value

GeoColor

Width

public float Width { get; }

Property Value

float

Opacity

public float Opacity { get; }

Property Value

float

Blur

public float Blur { get; }

Property Value

float

GapWidth

public float GapWidth { get; }

Property Value

float

Offset

public float Offset { get; }

Property Value

float

Dash

line-dasharray. Default when the layer draws a solid line.

public DashArray Dash { get; }

Property Value

DashArray

TranslateX

public float TranslateX { get; }

Property Value

float

TranslateY

public float TranslateY { get; }

Property Value

float

TranslateAnchor

line-translate-anchor: what the translate is measured against - the map (the default) or the screen.

public StyleAnchor TranslateAnchor { get; }

Property Value

StyleAnchor

Constructors

LinePaint(GeoColor, float, float, float, float, float, DashArray, float, float, StyleAnchor)

LinePaint(GeoColor color, float width, float opacity, float blur, float gapWidth, float offset, DashArray dash, float translateX, float translateY, StyleAnchor translateAnchor)

Parameters

color GeoColor

width float

opacity float

blur float

gapWidth float

offset float

dash DashArray

translateX float

translateY float

translateAnchor StyleAnchor

Methods

FromGeoPen(GeoPen)

The stroke of a classic GeoPen: its colour with alpha, its width in pixels, and its dash pattern (DashArray.FromGeoPen(GeoPen)). A pen with a non-solid brush strokes in that brush's fill colour. Caps and joins are layout rather than paint: StyleLayer.CreateLine takes them, and / read them off the pen.

LinePaint FromGeoPen(GeoPen pen)

Parameters

pen GeoPen

Returns

LinePaint