PixelSize.

FromSize(Size, Vector) Method

Summary

Converts a Size to device pixels using the specified scaling factor.
Namespace
Avalonia
Containing Type
PixelSize

Syntax

public static PixelSize FromSize(Size size, Vector scale)

Parameters

Name Type Description
size Size The size.
scale Vector The scaling factor.

Return Value

Type Description
PixelSize The device-independent size.