Windows dpi 설정을 알아내는 방법

다음 설정으로 현재 윈도우의 dpi 설정을 알 수 있습니다.
 
private void Form1_Load(object sender, EventArgs e)


{


    using (Graphics myGraphics = this.CreateGraphics())


    {


        MessageBox.Show(String.Format("Resolution X: {0} dpi, Resolution Y: {1} dpi", myGraphics.DpiX, myGraphics.DpiY),


                        "Windows Resolution");


    }


}




참고 : http://blogs.msdn.com/acoat/archive/2008/11/17/finding-the-windows-dpi-setting-in-net.aspx

by 아라리온 | 2008/11/18 10:14 | .NET | 트랙백 | 덧글(0)

트랙백 주소 : http://ararion.egloos.com/tb/1118911
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지 다음 페이지 ▶