Search Results for

    Show / Hide Table of Contents

    Class LabelStyleRenderer

    Inheritance
    object
    LabelStyleRenderer
    Implements
    ISkiaStyleRenderer
    IStyleRenderer
    IFeatureSize
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Rendering.Skia
    Assembly: Mapsui.Rendering.Skia.dll
    Syntax
    public class LabelStyleRenderer : ISkiaStyleRenderer, IStyleRenderer, IFeatureSize

    Methods

    | Edit this page View Source

    CreateTypeFace(Font)

    Declaration
    public static SKTypeface CreateTypeFace(Font font)
    Parameters
    Type Name Description
    Font font
    Returns
    Type Description
    SKTypeface
    | Edit this page View Source

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    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

    Implements

    ISkiaStyleRenderer
    IStyleRenderer
    IFeatureSize
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX