LinePaint¶
Namespace: ThinkGeo.Core.Styling
public struct LinePaint
Inheritance object → ValueType → LinePaint
Properties¶
Color¶
public GeoColor Color { get; }
Property Value¶
Width¶
public float Width { get; }
Property Value¶
Opacity¶
public float Opacity { get; }
Property Value¶
Blur¶
public float Blur { get; }
Property Value¶
GapWidth¶
public float GapWidth { get; }
Property Value¶
Offset¶
public float Offset { get; }
Property Value¶
Dash¶
line-dasharray. Default when the layer draws a solid line.
public DashArray Dash { get; }
Property Value¶
TranslateX¶
public float TranslateX { get; }
Property Value¶
TranslateY¶
public float TranslateY { get; }
Property Value¶
TranslateAnchor¶
line-translate-anchor: what the translate is measured against - the map (the default) or the screen.
public StyleAnchor TranslateAnchor { get; }
Property Value¶
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