예제 #1
0
        protected void InternalUpdateScreen(int ix, int iy)
        {
            Rectangle r = canvas.Clip(UpdateRectangle.Grow(ix, iy));

            if (canvas.OnScreen(r))
            {
                canvas.CopyToScreen(r);
            }
        }
예제 #2
0
        public virtual void GetBackground()
        {
            background?.Dispose();
            background          = null;
            backgroundRectangle = canvas.Clip(UpdateRectangle);

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