Aurigma Graphics Mill 5.5 for .NET
UnitConverter Class
This class can be used to convert values from one spatial units to another.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Class UnitConverter
C#
public class UnitConverter
Remarks
This class provides three static methods which enables you to convert:
- Device-dependent units (pixels) -> device-independent units (like inches, centimeters, etc). See the method ConvertPixelsToUnits(Single, Int32, Unit).
- Device-independent units -> device-dependent units. See the method ConvertUnitsToPixels(Single, Single, Unit).
- One device-independent units -> another device-independent units. See the method ConvertUnitsToUnits(Single, Single, Unit, Unit).
All these method require a parameter called resolution - a number of pixels in one inch (dots per pixel - DPI). Typically this parameter depends on the resolution you are going to get when printing the image (e.g. 300 or 600 DPI). Also, it can be a screen resolution (as usual, 96 DPI).
Inheritance Hierarchy
System..::.Object
L
Aurigma.GraphicsMill..::.UnitConverter
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.