1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1500return 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; 1440public static SafeDC CreateCompatibleDC(SafeDC hdc) 1442SafeDC dc = null; 1470public static SafeDC GetDC(IntPtr hwnd) 1472SafeDC dc = null; 1491public static SafeDC GetDesktop() 1497public static SafeDC WrapDC(IntPtr hdc) 2376private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2381public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2675public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3036private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3038public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3049private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3051public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3096SafeDC hdcDst, 3099SafeDC hdcSrc, 3120SafeDC hdcDst, 3123SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
178using (SafeDC dc = SafeDC.GetDesktop())