1 instantiation of SafeDC
PresentationFramework (1)
System\Windows\Standard\NativeMethods.cs (1)
1500
return new
SafeDC
25 references to SafeDC
PresentationFramework (25)
System\Windows\Standard\NativeMethods.cs (23)
1373
public static extern
SafeDC
GetDC(IntPtr hwnd);
1377
public static extern
SafeDC
CreateDC([MarshalAs(UnmanagedType.LPWStr)] string lpszDriver, [MarshalAs(UnmanagedType.LPWStr)] string lpszDevice, IntPtr lpszOutput, IntPtr lpInitData);
1380
public static extern
SafeDC
CreateCompatibleDC(IntPtr hdc);
1417
public static
SafeDC
CreateDC(string deviceName)
1419
SafeDC
dc = null;
1440
public static
SafeDC
CreateCompatibleDC(
SafeDC
hdc)
1442
SafeDC
dc = null;
1470
public static
SafeDC
GetDC(IntPtr hwnd)
1472
SafeDC
dc = null;
1491
public static
SafeDC
GetDesktop()
1497
public static
SafeDC
WrapDC(IntPtr hdc)
2376
private static extern SafeHBITMAP _CreateDIBSection(
SafeDC
hdc, [In] ref BITMAPINFO bitmapInfo, int iUsage, [Out] out IntPtr ppvBits, IntPtr hSection, int dwOffset);
2381
public static SafeHBITMAP CreateDIBSection(
SafeDC
hdc, ref BITMAPINFO bitmapInfo, out IntPtr ppvBits, IntPtr hSection, int dwOffset)
2675
public static extern int GetDeviceCaps(
SafeDC
hdc, DeviceCap nIndex);
3036
private static extern IntPtr _SelectObject(
SafeDC
hdc, IntPtr hgdiobj);
3038
public static IntPtr SelectObject(
SafeDC
hdc, IntPtr hgdiobj)
3049
private static extern IntPtr _SelectObjectSafeHBITMAP(
SafeDC
hdc, SafeHBITMAP hgdiobj);
3051
public static IntPtr SelectObject(
SafeDC
hdc, SafeHBITMAP hgdiobj)
3096
SafeDC
hdcDst,
3099
SafeDC
hdcSrc,
3120
SafeDC
hdcDst,
3123
SafeDC
hdcSrc,
System\Windows\Standard\Utilities.cs (2)
178
using (
SafeDC
dc =
SafeDC
.GetDesktop())