[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.ScaleSizeToDpi

ScaleSizeToDpi Method

ScaleSizeToDpi(Size)

Scales a Size from the default DPI (dots per inch) settings to the DPI settings of the current device.

Declaration
public Size ScaleSizeToDpi(Size size)
Parameters
Type Name Description
Size size

The original Size to scale.

Returns
Type Description
Size

A new 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 Size based on the system's current DPI settings compared to the default DPI, ensuring consistent sizing across different display settings.