1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1521return new SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1381public static extern SafeDC GetDC(IntPtr hwnd); 1386public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1390public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1428public static SafeDC CreateDC(string deviceName) 1430SafeDC dc = null; 1454public static SafeDC CreateCompatibleDC(SafeDC hdc) 1456SafeDC dc = null; 1487public static SafeDC GetDC(IntPtr hwnd) 1489SafeDC dc = null; 1511public static SafeDC GetDesktop() 1518public static SafeDC WrapDC(IntPtr hdc) 2422private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2429public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2764public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3176private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3179public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3191private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3194public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3244SafeDC hdcDst, 3247SafeDC hdcSrc, 3270SafeDC hdcDst, 3273SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
213using (SafeDC dc = SafeDC.GetDesktop())