Class Units
Namespace: Aurigma.DesignAtoms.Utils
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class Units
Inheritance: System.Object -> Units
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
ConvertPointsToPixels
public static int ConvertPointsToPixels(float dpi, float points)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | dpi | |
System.Single | points |
Returns
System.Int32
ConvertPixelsToPoints
public static float ConvertPixelsToPoints(float dpi, int pixels)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | dpi | |
System.Int32 | pixels |
Returns
System.Single
ConvertPointsToPixels
public static RectangleF ConvertPointsToPixels(float dpi, RectangleF pointRect)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | dpi | |
System.Drawing.RectangleF | pointRect |
Returns
System.Drawing.RectangleF