1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1521
return new
SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1381
public static extern
SafeDC
GetDC(IntPtr hwnd);
1386
public static extern
SafeDC
CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData);
1390
public static extern
SafeDC
CreateCompatibleDC(IntPtr hdc);
1428
public static
SafeDC
CreateDC(string deviceName)
1430
SafeDC
dc = null;
1454
public static
SafeDC
CreateCompatibleDC(
SafeDC
hdc)
1456
SafeDC
dc = null;
1487
public static
SafeDC
GetDC(IntPtr hwnd)
1489
SafeDC
dc = null;
1511
public static
SafeDC
GetDesktop()
1518
public static
SafeDC
WrapDC(IntPtr hdc)
2422
private static extern SafeHBITMAP _CreateDIBSection(
SafeDC
hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset);
2429
public static SafeHBITMAP CreateDIBSection(
SafeDC
hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset)
2764
public static extern int GetDeviceCaps(
SafeDC
hdc, DeviceCap nIndex);
3176
private static extern IntPtr _SelectObject(
SafeDC
hdc, IntPtr hgdiobj);
3179
public static IntPtr SelectObject(
SafeDC
hdc, IntPtr hgdiobj)
3191
private static extern IntPtr _SelectObjectSafeHBITMAP(
SafeDC
hdc, SafeHBITMAP hgdiobj);
3194
public static IntPtr SelectObject(
SafeDC
hdc, SafeHBITMAP hgdiobj)
3244
SafeDC
hdcDst,
3247
SafeDC
hdcSrc,
3270
SafeDC
hdcDst,
3273
SafeDC
hdcSrc,
System\Windows\Standard\Utilities.cs (2)
213
using (
SafeDC
dc =
SafeDC
.GetDesktop())