Skip to content

CirclePaint

Namespace: ThinkGeo.Core.Styling

public struct CirclePaint

Inheritance object → ValueType → CirclePaint

Properties

FillColor

circle-color. Its alpha is kept and CirclePaint.Opacity multiplies it.

public GeoColor FillColor { get; }

Property Value

GeoColor

StrokeColor

circle-stroke-color. Its alpha is kept and CirclePaint.StrokeOpacity multiplies it.

public GeoColor StrokeColor { get; }

Property Value

GeoColor

Radius

public float Radius { get; }

Property Value

float

StrokeWidth

public float StrokeWidth { get; }

Property Value

float

Opacity

circle-opacity: the fill alone, as in the spec. The stroke has CirclePaint.StrokeOpacity.

public float Opacity { get; }

Property Value

float

StrokeOpacity

circle-stroke-opacity: the stroke alone. Default 1.

public float StrokeOpacity { get; }

Property Value

float

Constructors

CirclePaint(GeoColor, GeoColor, float, float, float, float)

CirclePaint(GeoColor fillColor, GeoColor strokeColor, float radius, float strokeWidth, float opacity, float strokeOpacity)

Parameters

fillColor GeoColor

strokeColor GeoColor

radius float

strokeWidth float

opacity float

strokeOpacity float

Methods

FromPointStyle(PointStyle)

The circle a classic PointStyle draws when its symbol is PointSymbolType.Circle: PointBaseStyle.SymbolSize is the diameter, the fill brush the colour, the outline pen the stroke - or no stroke when the pen is transparent. Any other symbol type, an image or a glyph is an icon, not a circle: register the style with MapStyle.Images.Add(name, pointStyle) and name it on a symbol layer.

CirclePaint FromPointStyle(PointStyle style)

Parameters

style PointStyle

Returns

CirclePaint