/// <summary> /// Refresh the background if transparency is disabled. /// </summary> private void RefreshBackground() { if (!ConfigService.Current.NoTransparency) { return; } SetScaling(); var bitmap = CaptureService.GetBitmap(new Rectangle(Point.Empty, screen.Size), screen.Location); BackgroundImage = CaptureService.ResizeBitmap(bitmap, Width, Height); Opacity = 1.0D; }