C# Class Fluent.DpiHelper

Datei anzeigen Open project: Gainedge/BetterExplorer

Public Methods

Method Description
DevicePixelsToLogical ( Point devicePoint ) : Point

Convert a point in system coordinates to a point in device independent pixels (1/96").

DeviceRectToLogical ( Rect deviceRectangle ) : Rect
DeviceSizeToLogical ( Size deviceSize ) : Size
LogicalPixelsToDevice ( Point logicalPoint ) : Point

Convert a point in device independent pixels (1/96") to a point in the system coordinates.

Private Methods

Method Description
DpiHelper ( ) : System
LogicalRectToDevice ( Rect logicalRectangle ) : Rect
LogicalSizeToDevice ( Size logicalSize ) : Size

Method Details

DevicePixelsToLogical() public static method

Convert a point in system coordinates to a point in device independent pixels (1/96").
public static DevicePixelsToLogical ( Point devicePoint ) : Point
devicePoint Point A point in the physical coordinate system.
return Point

DeviceRectToLogical() public static method

public static DeviceRectToLogical ( Rect deviceRectangle ) : Rect
deviceRectangle System.Windows.Rect
return System.Windows.Rect

DeviceSizeToLogical() public static method

public static DeviceSizeToLogical ( Size deviceSize ) : Size
deviceSize System.Windows.Size
return System.Windows.Size

LogicalPixelsToDevice() public static method

Convert a point in device independent pixels (1/96") to a point in the system coordinates.
public static LogicalPixelsToDevice ( Point logicalPoint ) : Point
logicalPoint Point A point in the logical coordinate system.
return Point