2 writes to compatDC
System.Drawing (2)
commonui\System\Drawing\BufferedGraphicsContext.cs (2)
380
compatDC
= UnsafeNativeMethods.CreateCompatibleDC(new HandleRef(null, src));
537
compatDC
= IntPtr.Zero;
6 references to compatDC
System.Drawing (6)
commonui\System\Drawing\BufferedGraphicsContext.cs (6)
400
oldBitmap = SafeNativeMethods.SelectObject(new HandleRef(this,
compatDC
), new HandleRef(this, dib));
404
compatGraphics = Graphics.FromHdcInternal(
compatDC
);
527
if (oldBitmap != IntPtr.Zero &&
compatDC
!= IntPtr.Zero)
530
SafeNativeMethods.SelectObject(new HandleRef(this,
compatDC
), new HandleRef(this, oldBitmap));
533
if (
compatDC
!= IntPtr.Zero)
536
UnsafeNativeMethods.DeleteDC(new HandleRef(this,
compatDC
));