Example #1
0
        public static void RenderAnimationToPictureBox(SdlDotNet.Widgets.PictureBox pic, Graphics.Renderers.Moves.IMoveAnimation animation)
        {
            if (animation.Active) {
                Graphics.Renderers.RendererDestinationData destData = new Graphics.Renderers.RendererDestinationData(pic.Image, new Point(0, 0), pic.Size);

                Graphics.Renderers.Moves.MoveRenderer.RenderMoveAnimation(destData, animation, new Point(32*animation.StartX,32*animation.StartY));
                pic.RequestRedraw();
            }
        }