Esempio n. 1
0
        // blur the users wallpaper and set it as the form background
        private void BlurBackground()
        {
            GaussianBlur blur = new GaussianBlur(GetBackgroundImage());

            BackgroundImage = blur.Process(Configuration.BlurIntensity);

            if (BackgroundImage.IsPixelBright(11, 387) || //Bottom left
                BackgroundImage.IsPixelBright(EaseOfAccessButton.Location.X, EaseOfAccessButton.Location.Y) ||
                BackgroundImage.IsPixelBright(UserNameLabel.Location.X, UserNameLabel.Location.Y))
            {
                BackgroundImage.AdjustBrightness(Configuration.DarknessIntensity);
            }
        }