Show / Hide Table of Contents

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 Source

GetPixelFormat(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetPosition(Point)

Converts a Avalonia to a Position.

Declaration
public static Position GetPosition(Point point)
Parameters
Type Name Description
Point point

Value to convert.

Returns
Type Description
Position

The conversion result.

| Improve this Doc View Source

GetSize(PixelSize)

Converts a Avalonia to a Size.

Declaration
public static Size GetSize(PixelSize avaloniaPixelSize)
Parameters
Type Name Description
PixelSize avaloniaPixelSize

Value to convert.

Returns
Type Description
Size

The conversion result.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX