Skip to main content

Class Units

Namespace: Aurigma.DesignAtoms.Utils
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class Units

Inheritance: System.Object -> Units

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Methods

ConvertPointsToPixels

public static int ConvertPointsToPixels(float dpi, float points)
Parameters
TypeNameDescription
System.Singledpi
System.Singlepoints
Returns

System.Int32

ConvertPixelsToPoints

public static float ConvertPixelsToPoints(float dpi, int pixels)
Parameters
TypeNameDescription
System.Singledpi
System.Int32pixels
Returns

System.Single

ConvertPointsToPixels

public static RectangleF ConvertPointsToPixels(float dpi, RectangleF pointRect)
Parameters
TypeNameDescription
System.Singledpi
System.Drawing.RectangleFpointRect
Returns

System.Drawing.RectangleF

Was this page helpful?