LEADTOOLS Forms (Leadtools.Forms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ToPixels Method
See Also 
Leadtools.Forms Namespace > LogicalLength Structure : ToPixels Method



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

The ToPixels Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

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 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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