Class DisplayUnitsConverter
Namespace: Aspose.Note
Assembly: Aspose.Note.dll (25.8.0)
The class contains the methods for converting values.
public static class DisplayUnitsConverterInheritance
object ← DisplayUnitsConverter
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
InchToPoint(float)
Converts inches to points.
public static float InchToPoint(float inches)Parameters
inches float
The value to convert in inches.
Returns
The System.Single.
MillimeterToInch(float)
Converts millimeters to inches.
public static float MillimeterToInch(float mm)Parameters
mm float
The value to convert in millimeters.
Returns
The System.Single.
MillimeterToPoint(float)
Converts millimeters to points.
public static float MillimeterToPoint(float mm)Parameters
mm float
The value to convert in millimeters.
Returns
The System.Single.
PixelToPoint(int, float)
Converts pixels to points at the specified pixel resolution.
public static float PixelToPoint(int pixels, float dpi)Parameters
pixels int
The value to convert in pixels.
dpi float
Screen resolution.
Returns
The System.Int32.
PointToInch(float)
Converts points to inches.
public static float PointToInch(float points)Parameters
points float
The value to convert in points.
Returns
The System.Single.
PointToPixel(float, float)
Converts points to pixels at the specified pixel resolution.
public static int PointToPixel(float points, float dpi)Parameters
points float
The value to convert in points.
dpi float
Screen resolution.
Returns
The System.Int32.