Class LabelStyleRenderer
Inherited Members
Namespace: Mapsui.Rendering.Skia
Assembly: Mapsui.Rendering.Skia.dll
Syntax
public class LabelStyleRenderer : ISkiaStyleRenderer, IStyleRenderer, IFeatureSizeMethods
| Edit this page View SourceDraw(SKCanvas, Viewport, ILayer, IFeature, IStyle, RenderService, long)
Drawing function for special styles
Declaration
public bool Draw(SKCanvas canvas, Viewport viewport, ILayer layer, IFeature feature, IStyle style, RenderService renderService, 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. | 
| RenderService | renderService | RenderService to provide caches and such. | 
| long | iteration | 
Returns
| Type | Description | 
|---|---|
| bool | 
DrawAsBitmap(SKCanvas, LabelStyle, IFeature, float, float, float, VectorCache)
Declaration
public void DrawAsBitmap(SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y, float layerOpacity, VectorCache vectorCache)Parameters
| Type | Name | Description | 
|---|---|---|
| SKCanvas | canvas | |
| LabelStyle | style | |
| IFeature | feature | |
| float | x | |
| float | y | |
| float | layerOpacity | |
| VectorCache | vectorCache | 
FeatureSize(IFeature, LabelStyle, RenderService)
Declaration
public static double FeatureSize(IFeature feature, LabelStyle labelStyle, RenderService renderService)Parameters
| Type | Name | Description | 
|---|---|---|
| IFeature | feature | |
| LabelStyle | labelStyle | |
| RenderService | renderService | 
Returns
| Type | Description | 
|---|---|
| double |