←Select platform

ConvertToPixels Method

Summary

Returns the value of the source value, converted to its equivalent measurement in Leadtools.Forms.LogicalUnit.Pixel.

Syntax

C#
VB
C++
public static double ConvertToPixels( 
   double sourceValue, 
   LogicalUnit sourceUnit, 
   double destinationDpi 
) 
  
Public Shared Function ConvertToPixels( _ 
   ByVal sourceValue As Double, _ 
   ByVal sourceUnit As Leadtools.Forms.LogicalUnit, _ 
   ByVal destinationDpi As Double _ 
) As Double 
public: 
static double ConvertToPixels(  
   double sourceValue, 
   Leadtools.Forms.LogicalUnit sourceUnit, 
   double destinationDpi 
)  

Parameters

sourceValue
The value that is going to be converted.

sourceUnit
The unit of measurement of the source value.

destinationDpi
Represents the DPI of the destination value.

Remarks

Convert 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 Width.

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