Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.IO.OpenXml Namespace / UnitConverter Class / MillimetersToPixels Method
The value to be converted to pixels.


In This Topic
    MillimetersToPixels Method
    In This Topic
    Converts a measurement from milimeters to pixels (1 milimeter = 96 / 25.4 pixels).
    Syntax
    'Declaration
     
    
    Public Shared Function MillimetersToPixels( _
       ByVal value As Double, _
       ByVal dpi As Integer _
    ) As Double
    'Usage
     
    
    Dim value As Double
    Dim dpi As Integer
    Dim value As Double
     
    value = UnitConverter.MillimetersToPixels(value, dpi)
    public static double MillimetersToPixels( 
       double value,
       int dpi
    )

    Parameters

    value
    The value to be converted to pixels.
    dpi

    Return Value

    A double value represents the corresponding pixels.
    See Also