Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.2
|
Leadtools.Annotations Namespace > AnnUnitConverter Class > Convert Method : Convert(Single,AnnUnit,AnnUnit) Method |
'Declaration Public Overloads Shared Function Convert( _ ByVal value As Single, _ ByVal srcUnit As AnnUnit, _ ByVal destUnit As AnnUnit _ ) As Single
'Usage Dim value As Single Dim srcUnit As AnnUnit Dim destUnit As AnnUnit Dim value As Single value = AnnUnitConverter.Convert(value, srcUnit, destUnit)
This example converts a value of 200 pixels to inches at 96 DPI.
Imports Leadtools Imports Leadtools.Annotations Public Sub AnnUnitConverter_Convert() Dim result As Single = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch) End Sub
using Leadtools; using Leadtools.Annotations; public void AnnUnitConverter_Convert() { float result = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch); }