Leadtools.Forms Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ToPixels Method
See Also 
Leadtools.Forms Namespace > LogicalLength Structure : ToPixels Method



dpi
Represents the DPI of the image along the length direction.
dpi
Represents the DPI of the image along the length direction.
Returns the length value in pixels according to the specified DPIs.

Syntax

Visual Basic (Declaration) 
Public Function ToPixels( _
   ByVal dpi As Double _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As LogicalLength
Dim dpi As Double
Dim value As Double
 
value = instance.ToPixels(dpi)
C# 
public double ToPixels( 
   double dpi
)
C++/CLI 
public:
double ToPixels( 
   double dpi
) 

Parameters

dpi
Represents the DPI of the image along the length direction.

Example

For an example, refer to Equals.

Remarks

LogicalLength converts a value measured in any unit that is specified by to pixels. The DPI is needed to define the area that is occuppied by one pixel.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features