GetDeviceCaps

    GetDeviceCaps - Device Context의 정보 구하기

    GetDeviceCaps함수는 지정된 Device Context의 여러 정보를 구하는 함수입니다. Declare Function GetDeviceCaps Lib "gdi32" Alias "GetDeviceCaps" (ByVal hdc As Integer, ByVal nIndex As Integer) As Integer ▶VB.NET 선언 [DllImport("gdi32")] public static extern int GetDeviceCaps(int hdc, int nIndex); ▶C# 선언 GetDeviceCaps함수는 첫번째 인수에서 정보를 구하고자할 Device Context를 지정하며 두번째 인수에서 어떠한 종류의 정보를 가져올지에 대한 flag를 지정합니다. 이때 지정할 수 있는 flag의 종..