CM
-
[C#] cm <-> pixel 변환, DPI 구하기Microsoft .NET/C# 2019. 4. 2. 10:30
DPI 활용 방향 디스플레이에 출력되는 물체의 크기가 실제 크기와 동일해야 하는 경우 DPI를 사용하여 CM를 PIXEL로 변환하여 출력 C#에서 DPI 구하기 public class ScreenInformations { public static uint RawDpi { get; private set; } static ScreenInformations() { uint dpiX; uint dpiY; GetDpi(DpiType.RAW, out dpiX, out dpiY); RawDpi = dpiX; } /// /// Returns the scaling of the given screen. /// /// The type of dpi that should be given back.. /// Gives the h..