Class LabelStyleRenderer
Inherited Members
Namespace: Mapsui.Rendering.Skia
Assembly: Mapsui.Rendering.Skia.dll
Syntax
public class LabelStyleRenderer : ISkiaStyleRenderer, IStyleRenderer, IFeatureSize
Methods
| Edit this page View SourceCreateTypeFace(Font)
Declaration
public static SKTypeface CreateTypeFace(Font font)
Parameters
Type | Name | Description |
---|---|---|
Font | font |
Returns
Type | Description |
---|---|
SKTypeface |
Draw(SKCanvas, Viewport, ILayer, IFeature, IStyle, IRenderCache, long)
Drawing function for special styles
Declaration
public bool Draw(SKCanvas canvas, Viewport viewport, ILayer layer, IFeature feature, IStyle style, IRenderCache renderCache, long iteration)
Parameters
Type | Name | Description |
---|---|---|
SKCanvas | canvas | SKCanvas for drawing. |
Viewport | viewport | Active viewport for this drawing operation. |
ILayer | layer | Layer that contains feature. |
IFeature | feature | Feature to draw. |
IStyle | style | Style to draw. |
IRenderCache | renderCache | SymbolCache for ready rendered bitmaps. |
long | iteration |
Returns
Type | Description |
---|---|
bool |
DrawAsBitmap(SKCanvas, LabelStyle, IFeature, float, float, float, ILabelCache)
Declaration
public void DrawAsBitmap(SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y, float layerOpacity, ILabelCache labelCache)
Parameters
Type | Name | Description |
---|---|---|
SKCanvas | canvas | |
LabelStyle | style | |
IFeature | feature | |
float | x | |
float | y | |
float | layerOpacity | |
ILabelCache | labelCache |
FeatureSize(IFeature, LabelStyle, SKPaint, ILabelCache)
Declaration
public static double FeatureSize(IFeature feature, LabelStyle labelStyle, SKPaint paint, ILabelCache labelCache)
Parameters
Type | Name | Description |
---|---|---|
IFeature | feature | |
LabelStyle | labelStyle | |
SKPaint | paint | |
ILabelCache | labelCache |
Returns
Type | Description |
---|---|
double |