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