C# Class Mapsui.Rendering.Skia.LabelRenderer

Show file Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
Draw ( SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y ) : void
DrawAsBitmap ( SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y ) : void

Private Methods

Method Description
CalcAlignFactor ( LabelStyle verticalAlignment ) : object
CreateLabelAsBitmap ( LabelStyle style, string text ) : SKBitmap
CreateLabelAsBitmap ( LabelStyle style, string text, SKPaint paint ) : SKBitmap
CreatePaint ( LabelStyle style ) : SKPaint
DrawBackground ( LabelStyle style, SKRect rect, SKCanvas target ) : void
DrawLabel ( SKCanvas target, float x, float y, LabelStyle style, string text ) : void

Method Details

Draw() public static method

public static Draw ( SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y ) : void
canvas SkiaSharp.SKCanvas
style Mapsui.Styles.LabelStyle
feature IFeature
x float
y float
return void

DrawAsBitmap() public static method

public static DrawAsBitmap ( SKCanvas canvas, LabelStyle style, IFeature feature, float x, float y ) : void
canvas SkiaSharp.SKCanvas
style Mapsui.Styles.LabelStyle
feature IFeature
x float
y float
return void