1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1515return new SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1379public static extern SafeDC GetDC(IntPtr hwnd); 1383public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1386public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1423public static SafeDC CreateDC(string deviceName) 1425SafeDC dc = null; 1449public static SafeDC CreateCompatibleDC(SafeDC hdc) 1451SafeDC dc = null; 1482public static SafeDC GetDC(IntPtr hwnd) 1484SafeDC dc = null; 1506public static SafeDC GetDesktop() 1512public static SafeDC WrapDC(IntPtr hdc) 2386private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2391public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2685public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3046private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3048public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3059private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3061public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3106SafeDC hdcDst, 3109SafeDC hdcSrc, 3130SafeDC hdcDst, 3133SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
188using (SafeDC dc = SafeDC.GetDesktop())