Toggle side menu
Toggle side menu
Home
Documentation
API
PixelSize
.
ToSizeWithDpi
(double)
Method
Summary
Converts the
PixelSize
to a device-independent
Size
using the specified dots per inch (DPI).
Namespace
Avalonia
Containing Type
PixelSize
Syntax
public Size ToSizeWithDpi(double dpi)
Parameters
Name
Type
Description
dpi
double
The dots per inch.
Return Value
Type
Description
Size
The device-independent size.