コード例 #1
0
ファイル: GdiProxy.cs プロジェクト: tsvx/RealTimeGraphs
        public static int GetDeviceCaps(DeviceCap cap)
        {
            using (var g = Graphics.FromHwnd(IntPtr.Zero))
            {
                //Console.WriteLine("Graphics.DpiX: " + g.DpiX);
                //Console.WriteLine("Graphics.DpiY: " + g.DpiY);
                //Console.WriteLine();

                //var hdc = new HandleRef(g, g.GetHdc());
                IntPtr hdc    = g.GetHdc();
                int    result = GetDeviceCaps(hdc, (int)cap);
                g.ReleaseHdc();
                return(result);
            }
        }
コード例 #2
0
 internal static extern int GetDeviceCaps(IntPtr hdc, DeviceCap capindex);
コード例 #3
0
 private static extern int GetDeviceCaps(IntPtr hdc, DeviceCap nIndex);
コード例 #4
0
ファイル: UnsafeNativeMethods.cs プロジェクト: Tana0910/wpf
 public static extern int GetDeviceCaps(HandleRef hdc, DeviceCap capability);
コード例 #5
0
ファイル: Gdi32.cs プロジェクト: AArnott/pinvoke
 public static extern int GetDeviceCaps(
     User32.SafeDCHandle hdc,
     DeviceCap nIndex);
コード例 #6
0
 public static extern int GetDeviceCaps(IntPtr hdc, DeviceCap deviceCap);
コード例 #7
0
 public static extern Int32 GetDeviceCaps(IntPtr hDC, DeviceCap cap);
コード例 #8
0
 public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex);
コード例 #9
0
ファイル: NativeMethods.cs プロジェクト: ForNeVeR/PoshConsole
 public static extern int GetDeviceCaps(IntPtr hdc, DeviceCap nIndex);
コード例 #10
0
 private static extern int GetDeviceCaps(IntPtr hdc, DeviceCap nIndex);
コード例 #11
0
 internal static extern int GetDeviceCaps(IntPtr hDc, DeviceCap nIndex);
コード例 #12
0
 public static extern Int32 GetDeviceCaps(IntPtr hdc, DeviceCap capindex);
コード例 #13
0
 internal static extern int GetDeviceCaps(IntPtr hdc, DeviceCap capindex);
コード例 #14
0
ファイル: WinMethods.cs プロジェクト: rasberry/RndWallpaper
 public static extern int GetDeviceCaps(
     HandleRef hdc,
     [MarshalAs(UnmanagedType.I4)] DeviceCap nIndex
     );
コード例 #15
0
 public static extern int GetDeviceCaps(IntPtr hdc, DeviceCap nIndex);
コード例 #16
0
ファイル: WinGdi.cs プロジェクト: zuozhu315/Vanara
 public static extern int GetDeviceCaps(HDC hdc, DeviceCap index);
コード例 #17
0
 public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex);
コード例 #18
0
 public static extern int GetDeviceCaps(
     User32.SafeDCHandle hdc,
     DeviceCap nIndex);
コード例 #19
0
 internal static extern int GetDeviceCaps(IntPtr hDC, DeviceCap cap);