1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1502return new SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1375public static extern SafeDC GetDC(IntPtr hwnd); 1379public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1382public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1419public static SafeDC CreateDC(string deviceName) 1421SafeDC dc = null; 1442public static SafeDC CreateCompatibleDC(SafeDC hdc) 1444SafeDC dc = null; 1472public static SafeDC GetDC(IntPtr hwnd) 1474SafeDC dc = null; 1493public static SafeDC GetDesktop() 1499public static SafeDC WrapDC(IntPtr hdc) 2378private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2383public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2713public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3074private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3076public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3087private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3089public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3134SafeDC hdcDst, 3137SafeDC hdcSrc, 3158SafeDC hdcDst, 3161SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
178using (SafeDC dc = SafeDC.GetDesktop())