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
-
objectSKRectExtensions
Methods
ToRect(SKRect)
Converts the rectangle to an Avalonia Avalonia.Rect.
public static Rect ToRect(this SKRect rect)
Parameters
rectSKRectThe 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
rectSKRectIThe integer rectangle to convert.
Returns
- Rect
The resulting Avalonia Avalonia.Rect.