@ryancg wrote:
I can get DPI in System.Drawing.Graphics, but don't know how to get DPI in MG.
float dpiX, dpiY;
using (Graphics graphics = Graphics.FromHwnd(IntPtr.Zero))
{
dpiX = graphics.DpiX;
dpiY = graphics.DpiY;
}
Posts: 1
Participants: 1
@ryancg wrote:
I can get DPI in System.Drawing.Graphics, but don't know how to get DPI in MG.
float dpiX, dpiY;
using (Graphics graphics = Graphics.FromHwnd(IntPtr.Zero))
{
dpiX = graphics.DpiX;
dpiY = graphics.DpiY;
}
Posts: 1
Participants: 1