Table of Contents

Class UnitsConverter

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

Converts between various graphic units (pixels, points, etc).

[ClassInterface(ClassInterfaceType.AutoDual)]
public class UnitsConverter
Inheritance
UnitsConverter
Inherited Members

Constructors

UnitsConverter()

public UnitsConverter()

Methods

PixelsToPoints(float)

Converts from pixels to points. The result of this method takes into account the current screen resolution.

public static float PixelsToPoints(float pixels)

Parameters

pixels float

The value in pixels to convert.

Returns

float

The value in points.

PointsToPixels(float)

Converts from points to pixels. The result of this method takes into account the current screen resolution.

public static float PointsToPixels(float points)

Parameters

points float

The value in points to convert.

Returns

float

The value in pixels.