PixelSize.

FromSizeWithDpi(Size, double) Method

Summary

Converts a Size to device pixels using the specified dots per inch (DPI).
Namespace
Avalonia
Containing Type
PixelSize

Syntax

public static PixelSize FromSizeWithDpi(Size size, double dpi)

Parameters

Name Type Description
size Size The size.
dpi double The dots per inch.

Return Value

Type Description
PixelSize The device-independent size.