←Select platform

ConvertFromPixels Method

Summary

Returns the value of the source value that is measured in Leadtools.Forms.LogicalUnit.Pixel, converted to its equivalent in the specified destination unit of measure.

Syntax

C#
VB
C++
public static double ConvertFromPixels( 
   double sourceValue, 
   double sourceDpi, 
   LogicalUnit destinationUnit 
) 
  
Public Shared Function ConvertFromPixels( _ 
   ByVal sourceValue As Double, _ 
   ByVal sourceDpi As Double, _ 
   ByVal destinationUnit As Leadtools.Forms.LogicalUnit _ 
) As Double 
public: 
static double ConvertFromPixels(  
   double sourceValue, 
   double sourceDpi, 
   Leadtools.Forms.LogicalUnit destinationUnit 
)  

Parameters

sourceValue
The value that is going to be converted measured in Leadtools.Forms.LogicalUnit.Pixel.

sourceDpi
Represents the DPI of the source value.

destinationUnit
The unit of measurement of the destination value.

Remarks

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

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