Esempio n. 1
0
        public void UpdateBackground(Graphics g, Point windowLocation)
        {
            if (!Visible)
            {
                return;
            }

            Bitmap bmp = new Bitmap(Bounds.Width, Bounds.Height, g);

            DrawUtil.CopyFromGraphics(g, bmp, Bounds.Location, Point.Empty, Bounds.Size);
            backgroundImage = bmp;
        }