1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1502
return new
SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1375
public static extern
SafeDC
GetDC(IntPtr hwnd);
1379
public static extern
SafeDC
CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData);
1382
public static extern
SafeDC
CreateCompatibleDC(IntPtr hdc);
1419
public static
SafeDC
CreateDC(string deviceName)
1421
SafeDC
dc = null;
1442
public static
SafeDC
CreateCompatibleDC(
SafeDC
hdc)
1444
SafeDC
dc = null;
1472
public static
SafeDC
GetDC(IntPtr hwnd)
1474
SafeDC
dc = null;
1493
public static
SafeDC
GetDesktop()
1499
public static
SafeDC
WrapDC(IntPtr hdc)
2378
private static extern SafeHBITMAP _CreateDIBSection(
SafeDC
hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset);
2383
public static SafeHBITMAP CreateDIBSection(
SafeDC
hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset)
2713
public static extern int GetDeviceCaps(
SafeDC
hdc, DeviceCap nIndex);
3074
private static extern IntPtr _SelectObject(
SafeDC
hdc, IntPtr hgdiobj);
3076
public static IntPtr SelectObject(
SafeDC
hdc, IntPtr hgdiobj)
3087
private static extern IntPtr _SelectObjectSafeHBITMAP(
SafeDC
hdc, SafeHBITMAP hgdiobj);
3089
public static IntPtr SelectObject(
SafeDC
hdc, SafeHBITMAP hgdiobj)
3134
SafeDC
hdcDst,
3137
SafeDC
hdcSrc,
3158
SafeDC
hdcDst,
3161
SafeDC
hdcSrc,
System\Windows\Standard\Utilities.cs (2)
178
using (
SafeDC
dc =
SafeDC
.GetDesktop())