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