TreeView for WinForms | ComponentOne
C1.Framework Namespace / ScrollBarElement.ScrollBarPageButton Class / ScaleToDPI Method / ScaleToDPI(Int32,Int32) Method
The value for scaling.
The dpi of display device.

In This Topic
    ScaleToDPI(Int32,Int32) Method
    In This Topic
    Scales a value to custom display device dpi.
    Syntax
    'Declaration
     
    
    Protected Overloads Function ScaleToDPI( _
       ByVal value As Integer, _
       ByVal dpi As Integer _
    ) As Integer
    protected int ScaleToDPI( 
       int value,
       int dpi
    )

    Parameters

    value
    The value for scaling.
    dpi
    The dpi of display device.

    Return Value

    The scaled value.
    See Also