Converts a value from one unit to another.
public static float Convert(
float value,
Leadtools.Annotations.AnnUnit srcUnit,
Leadtools.Annotations.AnnUnit destUnit
)
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 units.
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
![]() |
Products |
Support |
Feedback: Convert(Single,AnnUnit,AnnUnit) Method - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.