1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1509return new SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1373public static extern SafeDC GetDC(IntPtr hwnd); 1377public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1380public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1417public static SafeDC CreateDC(string deviceName) 1419SafeDC dc = null; 1443public static SafeDC CreateCompatibleDC(SafeDC hdc) 1445SafeDC dc = null; 1476public static SafeDC GetDC(IntPtr hwnd) 1478SafeDC dc = null; 1500public static SafeDC GetDesktop() 1506public static SafeDC WrapDC(IntPtr hdc) 2385private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2390public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2684public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3045private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3047public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3058private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3060public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3105SafeDC hdcDst, 3108SafeDC hdcSrc, 3129SafeDC hdcDst, 3132SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
178using (SafeDC dc = SafeDC.GetDesktop())