1 instantiation of SafeDC
PresentationFramework (1)
src\Framework\System\Windows\Standard\NativeMethods.cs (1)
1570return new SafeDC
25 references to SafeDC
PresentationFramework (25)
src\Framework\System\Windows\Standard\NativeMethods.cs (23)
1381public static extern SafeDC GetDC(IntPtr hwnd); 1390public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1398public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1461public static SafeDC CreateDC(string deviceName) 1463SafeDC dc = null; 1491public static SafeDC CreateCompatibleDC(SafeDC hdc) 1493SafeDC dc = null; 1528public static SafeDC GetDC(IntPtr hwnd) 1530SafeDC dc = null; 1556public static SafeDC GetDesktop() 1567public static SafeDC WrapDC(IntPtr hdc) 2556private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2571public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 3033public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3665private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3672public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3688private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3695public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3773SafeDC hdcDst, 3776SafeDC hdcSrc, 3807SafeDC hdcDst, 3810SafeDC hdcSrc,
src\Framework\System\Windows\Standard\Utilities.cs (2)
196using (SafeDC dc = SafeDC.GetDesktop())