You’re viewing documentation for an outdated product. The Graphics Mill Web Controls library has been removed from Graphics Mill and is now part of the Customers Canvas product line, where it is available as a set of APIs for Design Atoms and as Design Editor.

Common.ConvertPixelsToPoints Method (Single, Int32)

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

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