PixelSize.

FromSizeWithDpi(Size, Vector) 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, Vector dpi)

Parameters

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

Return Value

Type Description
PixelSize The device-independent size.