C# Class WPFUtils.ScreenManager.DpiHelper

ファイルを表示 Open project: BravoAlpha/WPFUtils

Public Methods

Method Description
ConvertPixelsToDIPixels ( Rectangle rectangle ) : Rectangle
ConvertPixelsToDIPixels ( int pixels ) : double

Private Methods

Method Description
GetDC ( HandleRef hWnd ) : IntPtr
GetDeviceCaps ( HandleRef hDC, int nIndex ) : int
ReleaseDC ( HandleRef hWnd, HandleRef hDC ) : int

Method Details

ConvertPixelsToDIPixels() public static method

public static ConvertPixelsToDIPixels ( Rectangle rectangle ) : Rectangle
rectangle System.Drawing.Rectangle
return System.Drawing.Rectangle

ConvertPixelsToDIPixels() public static method

public static ConvertPixelsToDIPixels ( int pixels ) : double
pixels int
return double