Class Conversions
Helper functions for converting Avalonia specific types to their more abstract pendants.
Inheritance
System.Object
Conversions
Namespace: MarcusW.VncClient.Avalonia
Assembly: MarcusW.VncClient.Avalonia.dll
Syntax
public static class Conversions : object
Methods
| Improve this Doc View SourceGetPixelFormat(Avalonia.Platform.PixelFormat)
Converts a Avalonia PixelFormat to a PixelFormat.
Declaration
public static PixelFormat GetPixelFormat(Avalonia.Platform.PixelFormat avaloniaPixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| Avalonia.Platform.PixelFormat | avaloniaPixelFormat | Value to convert. |
Returns
| Type | Description |
|---|---|
| PixelFormat | The conversion result. |
GetPixelSize(Size)
Converts a Size to a Avalonia
Declaration
public static PixelSize GetPixelSize(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | Value to convert. |
Returns
| Type | Description |
|---|---|
| PixelSize | The conversion result. |
GetPosition(Point)
Converts a Avalonia
Declaration
public static Position GetPosition(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | Value to convert. |
Returns
| Type | Description |
|---|---|
| Position | The conversion result. |
GetSize(PixelSize)
Converts a Avalonia
Declaration
public static Size GetSize(PixelSize avaloniaPixelSize)
Parameters
| Type | Name | Description |
|---|---|---|
| PixelSize | avaloniaPixelSize | Value to convert. |
Returns
| Type | Description |
|---|---|
| Size | The conversion result. |