Click or drag to resize

DpiHelper Class

LightningChart .NET Help
Static helper class that contains helpers on DPI related issues. Meaning mainly PX to DIP conversions.
Inheritance Hierarchy
SystemObject
  Arction.Wpf.ChartingDpiHelper

Namespace:  Arction.Wpf.Charting
Assembly:  Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntax
[SerializableAttribute]
public static class DpiHelper

The DpiHelper type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDpiAware
Defines if the system process is DPI aware or not. Currently there is no way distinguishing between system aware and Per-monitor aware.
Public propertyStatic memberDpiXFactor
Effective Zoom factor of the system DPI of the screen width. Factor that describes how many real pixels there are per one DIP in X direction.
Public propertyStatic memberDpiYFactor
Effective Zoom factor of the system DPI of the screen height. Factor that describes how many real pixels there are per one DIP in Y direction.
Top
Methods
  NameDescription
Public methodStatic memberDipToPx(Point)
Converts given point defined in DIP (Device Independent Pixels) to PX (Screen pixels) values using system DPI settings.
Public methodStatic memberDipToPx(RectangleF)
Converts given rectangle size and position defined in DIP (Device Independent Pixels) to PX (Screen pixels) values using system DPI settings.
Public methodStatic memberDipToPx(Double, Boolean)
Converts given DIP (Device Independent Pixels) values to PX (Screen pixels) using system DPI settings.
Public methodStatic memberDipToPx(Single, Boolean)
Converts given DIP (Device Independent Pixels) values to PX (Screen pixels) using system DPI settings.
Public methodStatic memberPxToDip(Point)
Converts given point defined in PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Public methodStatic memberPxToDip(RectangleF)
Converts given rectangle size and position defined in PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Public methodStatic memberPxToDip(Double, Boolean)
Converts given PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Public methodStatic memberPxToDip(Single, Boolean)
Converts given PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Top
See Also