Esempio n. 1
0
        protected void InternalGetBackground()
        {
            background?.Dispose();
            background          = null;
            backgroundRectangle = canvas.Clip(UpdateRectangle);

            if (canvas.OnScreen(backgroundRectangle))
            {
                background = canvas.GetImage(backgroundRectangle);
            }
        }
Esempio n. 2
0
        public virtual void GetBackground()
        {
            background?.Dispose();
            background          = null;
            backgroundRectangle = canvas.Clip(UpdateRectangle);

            if (canvas.OnScreen(backgroundRectangle))
            {
                background = canvas.GetImage(backgroundRectangle);
            }
        }