1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1510return new SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1374public static extern SafeDC GetDC(IntPtr hwnd); 1378public static extern SafeDC CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData); 1381public static extern SafeDC CreateCompatibleDC(IntPtr hdc); 1418public static SafeDC CreateDC(string deviceName) 1420SafeDC dc = null; 1444public static SafeDC CreateCompatibleDC(SafeDC hdc) 1446SafeDC dc = null; 1477public static SafeDC GetDC(IntPtr hwnd) 1479SafeDC dc = null; 1501public static SafeDC GetDesktop() 1507public static SafeDC WrapDC(IntPtr hdc) 2381private static extern SafeHBITMAP _CreateDIBSection(SafeDC hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset); 2386public static SafeHBITMAP CreateDIBSection(SafeDC hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset) 2680public static extern int GetDeviceCaps(SafeDC hdc, DeviceCap nIndex); 3041private static extern IntPtr _SelectObject(SafeDC hdc, IntPtr hgdiobj); 3043public static IntPtr SelectObject(SafeDC hdc, IntPtr hgdiobj) 3054private static extern IntPtr _SelectObjectSafeHBITMAP(SafeDC hdc, SafeHBITMAP hgdiobj); 3056public static IntPtr SelectObject(SafeDC hdc, SafeHBITMAP hgdiobj) 3101SafeDC hdcDst, 3104SafeDC hdcSrc, 3125SafeDC hdcDst, 3128SafeDC hdcSrc,
System\Windows\Standard\Utilities.cs (2)
179using (SafeDC dc = SafeDC.GetDesktop())