internal GlowDrawingContext(int width, int height) { ScreenDC = InteropMethods.GetDC(IntPtr.Zero); if (ScreenDC == IntPtr.Zero) { return; } WindowDC = InteropMethods.CreateCompatibleDC(ScreenDC); if (WindowDC == IntPtr.Zero) { return; } BackgroundDC = InteropMethods.CreateCompatibleDC(ScreenDC); if (BackgroundDC == IntPtr.Zero) { return; } Blend.BlendOp = 0; Blend.BlendFlags = 0; Blend.SourceConstantAlpha = 255; Blend.AlphaFormat = 1; _windowBitmap = new GlowBitmap(ScreenDC, width, height); InteropMethods.SelectObject(WindowDC, _windowBitmap.Handle); }