C#
VB
C++
Returns the length value in pixels according to the specified DPIs.
dpi
Represents the DPI of the image along the length direction.
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.
For an example, refer to Equals.