| Leadtools.Annotations.Core Namespace > AnnUnitConverter Class : ConvertToPixels Method |
Public Shared Function ConvertToPixels( _ ByVal value As Double, _ ByVal sourceUnit As AnnUnit, _ ByVal dpi As Double _ ) As Double
public static double convertToPixels(
double value,
AnnUnit sourceUnit,
double dpi
)
function Leadtools.Annotations.Core.AnnUnitConverter.ConvertToPixels( value , sourceUnit , dpi )
Use this method to convert a value from any unit to pixels. For pixels conversions, a DPI (dots per inch) value is required.