[]
Scales a Size from the default DPI (dots per inch) settings to the DPI settings of the current device.
public Size ScaleSizeToDpi(Size size)
Type | Name | Description |
---|---|---|
Size | size | The original Size to scale. |
Type | Description |
---|---|
Size | A new Size that has been scaled to match the current device's DPI settings. |
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.