Control.RescaleConstantsForDpi(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides constants for rescaling the control when a DPI change occurs.
protected:
virtual void RescaleConstantsForDpi(int deviceDpiOld, int deviceDpiNew);
[System.ComponentModel.Browsable(true)]
protected virtual void RescaleConstantsForDpi (int deviceDpiOld, int deviceDpiNew);
[<System.ComponentModel.Browsable(true)>]
abstract member RescaleConstantsForDpi : int * int -> unit
override this.RescaleConstantsForDpi : int * int -> unit
Protected Overridable Sub RescaleConstantsForDpi (deviceDpiOld As Integer, deviceDpiNew As Integer)
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.