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