Show / Hide Table of Contents

    Class ClippingExtension

    Inheritance
    System.Object
    ClippingExtension
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Mapsui.Rendering.Skia
    Assembly: Mapsui.Rendering.Skia.dll
    Syntax
    public static class ClippingExtension

    Methods

    | Improve this Doc View Source

    ToSkiaPath(Polygon, IReadOnlyViewport, SKRect, Single)

    Converts a Polygon into a SKPath, that is clipped to cliptRect, where exterior is bigger than interior

    Declaration
    public static SKPath ToSkiaPath(this Polygon polygon, IReadOnlyViewport viewport, SKRect clipRect, float strokeWidth)
    Parameters
    Type Name Description
    Polygon polygon

    Polygon to convert

    IReadOnlyViewport viewport

    Viewport implementation

    SkiaSharp.SKRect clipRect

    Rectangle to clip to. All lines outside aren't drawn.

    System.Single strokeWidth

    StrokeWidth for inflating cliptRect

    Returns
    Type Description
    SkiaSharp.SKPath
    | Improve this Doc View Source

    ToSkiaPath(IEnumerable<Point>, IReadOnlyViewport, SKRect)

    Converts a LineString (list of Mapsui points) in world coordinates to a Skia path

    Declaration
    public static SKPath ToSkiaPath(this IEnumerable<Point> lineString, IReadOnlyViewport viewport, SKRect clipRect)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Point> lineString

    List of points in Mapsui world coordinates

    IReadOnlyViewport viewport

    Viewport implementation

    SkiaSharp.SKRect clipRect

    Rectangle to clip to. All lines outside aren't drawn.

    Returns
    Type Description
    SkiaSharp.SKPath
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX