标题:求教!图片的动画显示
取消只看楼主
abc69690
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-11-21
结帖率:0
已结贴  问题点数:20 回复次数:0 
求教!图片的动画显示
实现图片的交错(左右交错、上下交错、左三分之一右三分之二交错、上三分之一下三分之二交错)切换的动画切换效果。
实在不知道所谓的交错效果是什么样的。。。。

对接效果做出来了 ,觉得应该跟这个属于同一类。。。

private void 上下对接ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            box = new Bitmap(pictureBox1.Image);
            try
            {
                width = this.pictureBox1.Image.Width;
                height = this.pictureBox1.Image.Height;
                Graphics g = this.pictureBox1.CreateGraphics();
                g.Clear(this.BackColor);
                Bitmap bmp = new Bitmap(width, height);
                int x = 0;
                while (x <= height / 2)
                {
                    for (int i = 0; i <= width - 1; i++)
                    {
                        bmp.SetPixel(i, x, box.GetPixel(i, x));
                    }
                    for (int i = 0; i <= width - 1; i++)
                    {
                        bmp.SetPixel(i, height - x - 1, box.GetPixel(i, height - x - 1));
                    }
                    x++;

                    g.DrawImage(bmp, 0, 0);

                }
            }
搜索更多相关主题的帖子: 动画 
2010-11-21 10:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-326389-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.193762 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved