C# Class ImageGlass.Theme.DPIScaling

Afficher le fichier Open project: d2phap/ImageGlass Class Usage Examples

Méthodes publiques

Méthode Description
CalculateCurrentDPI ( Form f ) : int
HandleDpiChanged ( int oldDpi, int currentDpi, Form f ) : void
LOWORD ( int number ) : short

Private Methods

Méthode Description
ScaleFontForControl ( Control control, float factor ) : void
SetWindowPos ( HandleRef hWnd, HandleRef hWndInsertAfter, int x, int y, int cx, int cy, int flags ) : bool

Method Details

CalculateCurrentDPI() public static méthode

public static CalculateCurrentDPI ( Form f ) : int
f System.Windows.Forms.Form
Résultat int

HandleDpiChanged() public static méthode

public static HandleDpiChanged ( int oldDpi, int currentDpi, Form f ) : void
oldDpi int
currentDpi int
f System.Windows.Forms.Form
Résultat void

LOWORD() public static méthode

public static LOWORD ( int number ) : short
number int
Résultat short