This documentation is for the old version. Go to the latest Graphics Mill docs

Common.ConvertPixelsToPoints Method

Converts a specified value in pixels to points using the specified dpi.

Namespace: Aurigma.GraphicsMill.AjaxControls.VectorObjects
Assembly: Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)

Syntax

Visual Basic
Public Shared Function ConvertPixelsToPoints ( _
	dpi As Single, _
	pixels As Integer _
) As Single
C#
public static float ConvertPixelsToPoints(
	float dpi,
	int pixels
)

Parameters

dpi

Type: System.Single

Resolution used for conversion.
pixels

Type: System.Int32

Number in pixels to convert.

Return Value

The Single value in points equivalent to the pixels value.

See Also

Reference