Control.RescaleConstantsForDpi(Int32, Int32) Method

Definition

Provides constants for rescaling the control when a DPI change occurs.

[System.ComponentModel.Browsable(true)]
protected virtual void RescaleConstantsForDpi (int deviceDpiOld, int deviceDpiNew);

Parameters

deviceDpiOld
Int32

The DPI value prior to the change.

deviceDpiNew
Int32

The DPI value after the change.

Attributes

Remarks

This method is an opportunity to rescale any constant sizes, glyphs or bitmaps before re-painting.

Applies to

Өнім Нұсқалар
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9