←Select platform

ToPixels Method

Summary

Returns the length value in pixels according to the specified DPIs.

Syntax

C#
VB
C++
public double ToPixels( 
   double dpi 
) 
  
Public Function ToPixels( _ 
   ByVal dpi As Double _ 
) As Double 
public: 
double ToPixels(  
   double dpi 
)  

Parameters

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

Remarks

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

Example

For an example, refer to Equals.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms Assembly