Back to Devexpress

Units.PointsToPixelsF(Single, Single) Method

officefileapi-devexpress-dot-office-dot-utils-dot-units-dot-pointstopixelsf-x28-system-dot-single-system-dot-single-x29.md

latest1.6 KB
Original Source

Units.PointsToPixelsF(Single, Single) Method

Converts a measurement from points to pixels. Returns the converted measurement as a Single.

Namespace : DevExpress.Office.Utils

Assembly : DevExpress.Office.v25.2.Core.dll

NuGet Package : DevExpress.Office.Core

Declaration

csharp
public static float PointsToPixelsF(
    float val,
    float dpi
)
vb
Public Shared Function PointsToPixelsF(
    val As Single,
    dpi As Single
) As Single

Parameters

NameTypeDescription
valSingle

The Single points value to be converted to pixels.

| | dpi | Single |

A dpi value used for conversion.

|

Returns

TypeDescription
Single

A Single value.

|

See Also

Units Class

Units Members

DevExpress.Office.Utils Namespace