You’re viewing documentation for an outdated product. Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see Design Atoms .NET, Design Atoms JS, and Design Editor.

Common.ConvertPixelsToPoints Method (Single, Int32)

Applies to: Graphics Mill Web Controls · Archived documentation

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