ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / ScaleSizeToDpi Method
The original System.Drawing.Size to scale.

In This Topic
    ScaleSizeToDpi Method
    In This Topic
    Scales a System.Drawing.Size from the default DPI (dots per inch) settings to the DPI settings of the current device.
    Syntax
    'Declaration
     
    Public Function ScaleSizeToDpi( _
       ByVal size As Size _
    ) As Size
    public Size ScaleSizeToDpi( 
       Size size
    )

    Parameters

    size
    The original System.Drawing.Size to scale.

    Return Value

    A new System.Drawing.Size that has been scaled to match the current device's DPI settings.
    Remarks
    This method is useful for ensuring that sizes are correctly scaled in environments with varying DPI settings. It adjusts the provided System.Drawing.Size based on the system's current DPI settings compared to the default DPI, ensuring consistent sizing across different display settings.
    See Also