- 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.
Visual Basic (Declaration) | |
---|---|
Public Shared Function ConvertToPixels( _ ByVal sourceValue As Double, _ ByVal sourceUnit As LogicalUnit, _ ByVal destinationDpi As Double _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
Dim sourceValue As Double Dim sourceUnit As LogicalUnit Dim destinationDpi As Double Dim value As Double value = LogicalUnitConverter.ConvertToPixels(sourceValue, sourceUnit, destinationDpi) |
C# | |
---|---|
public static double ConvertToPixels( double sourceValue, LogicalUnit sourceUnit, double destinationDpi ) |
C++/CLI | |
---|---|
public: static double ConvertToPixels( double sourceValue, 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.
For an example, refer to Width.
Convert 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7