Table of Contents

Class SKRectExtensions

Namespace
Artemis.UI.Shared.Extensions
Assembly
Artemis.UI.Shared.dll

Provides utility methods when working with SkiaSharp rectangles.

public static class SKRectExtensions
Inheritance
object
SKRectExtensions

Methods

ToRect(SKRect)

Converts the rectangle to an Avalonia Avalonia.Rect.

public static Rect ToRect(this SKRect rect)

Parameters

rect SKRect

The rectangle to convert.

Returns

Rect

The resulting Avalonia Avalonia.Rect.

ToRect(SKRectI)

Converts the integer rectangle to an Avalonia Avalonia.Rect.

public static Rect ToRect(this SKRectI rect)

Parameters

rect SKRectI

The integer rectangle to convert.

Returns

Rect

The resulting Avalonia Avalonia.Rect.