C#
VB
C++
Converts a value from one unit to another.
Public Overloads Shared Function Convert( _
ByVal value As Single, _
ByVal srcUnit As Leadtools.Annotations.AnnUnit, _
ByVal destUnit As Leadtools.Annotations.AnnUnit _
) As Single
public:
static float Convert(
float value,
Leadtools.Annotations.AnnUnit srcUnit,
Leadtools.Annotations.AnnUnit destUnit
)
value
Value to be converted. This is in
srcUnit
Source AnnUnit unit.
destUnit
Destination AnnUnit unit.
The converted value.
This method uses the default DPI value of 96.
This example converts a value of 200 pixels to inches at 96 DPI.
using Leadtools;
using Leadtools.Annotations;
public void AnnUnitConverter_Convert()
{
float result = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch);
}
Imports Leadtools
Imports Leadtools.Annotations
Public Sub AnnUnitConverter_Convert()
Dim result As Single = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch)
End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET