ComponentOne SuperTooltip for WinForms
C1.Win.8 Assembly / C1.Win.Util Namespace / DpiHelper Class / ScaleToDPI Method / ScaleToDPI(Size,Int32) Method
The value for scaling.
The DPI value for the current display device.

In This Topic
    ScaleToDPI(Size,Int32) Method
    In This Topic
    Scales a System.Drawing.Size value to the dpi.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ScaleToDPI( _
       ByVal value As System.Drawing.Size, _
       ByVal dpi As System.Integer _
    ) As System.Drawing.Size
    public static System.Drawing.Size ScaleToDPI( 
       System.Drawing.Size value,
       System.int dpi
    )

    Parameters

    value
    The value for scaling.
    dpi
    The DPI value for the current display device.

    Return Value

    The scaled value.
    See Also