- 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 |
|---|---|
| |
| 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 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Copy Code