Class SKRectExtensions
Provides utility methods when working with SkiaSharp rectangles.
Namespace: Artemis.UI.Shared.Extensions
Assembly: Artemis.UI.Shared.dll
Syntax
public static class SKRectExtensions
Methods
ToRect(SKRect)
Converts the rectangle to an Avalonia Avalonia.Rect.
Declaration
public static Rect ToRect(this SKRect rect)
Parameters
Type | Name | Description |
---|---|---|
SKRect | rect | The rectangle to convert. |
Returns
Type | Description |
---|---|
Rect | The resulting Avalonia Avalonia.Rect. |
ToRect(SKRectI)
Converts the integer rectangle to an Avalonia Avalonia.Rect.
Declaration
public static Rect ToRect(this SKRectI rect)
Parameters
Type | Name | Description |
---|---|---|
SKRectI | rect | The integer rectangle to convert. |
Returns
Type | Description |
---|---|
Rect | The resulting Avalonia Avalonia.Rect. |