如何实现多张图片平滑移动

小李所属 2009-12-15 05:01:15
如何实现 图片平滑移动 要在窗体的 当中位置滑动
并且平滑图片的的左右旁边还有2个左右按纽的标识符号< >

< 中间是图片滑动的位置 > 图片上方还有个 指向下方的箭头啊 ↓ ! 望高手指教
...全文
357 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
nixiang12 2009-12-16
  • 打赏
  • 举报
回复
我只有个 js版的
deyter 2009-12-16
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 jackfance 的回复:]
jackfance@163.com
[/Quote]
邮件已发,注意查收
deyter 2009-12-16
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 jackfance 的回复:]
没有把图片滚动的效果 放在正中间
[/Quote]
放在哪还不是你自己决定,想放在哪就放在那啊!
小李所属 2009-12-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wartim 的回复:]
http://topic.csdn.net/u/20091215/14/c842597c-a94f-450e-b213-9163a72d9356.html

回答过了




[/Quote]

没有把图片滚动的效果 放在正中间
小李所属 2009-12-16
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 deyter 的回复:]
还在问啊,我有一个类似的源码
告诉邮箱吧,我给你发个
[/Quote]
jackfance@163.com
wuyq11 2009-12-16
  • 打赏
  • 举报
回复
Bitmap bmp;
Timer timer = new Timer();
int top = 0;
public Form1()
{
this.Size = new Size(300, 300);
Rectangle r= this.ClientRectangle;
bmp= new Bitmap(r.Width, r.Height * 2);
using (Graphics g = Graphics.FromImage(bmp))
{
g.Clear(Color.LightBlue);
Random ran= new Random();
for (int i = 0; i < 1000; i++)
{
int x = ran.Next() % bmp.Width;
int y = ran.Next() % bmp.Height;
int i= ran.Next() % 5;
g.FillEllipse(Brushes.White, x, y, dot, dot);
g.FillEllipse(Brushes.White, x, y+r.Height, i, i);
}
}
timer.Interval = 200;
timer.Enabled = true;
timer.Tick += delegate { Invalidate(); };
}
protected override void OnPaint(PaintEventArgs e)
{
int height = this.ClientRectangle.Height;
top += 10;
if (top > height) top = 0;
e.Graphics.DrawImageUnscaled(bmp, 0, top - height);
}
protected override void OnPaintBackground(PaintEventArgs e)
{
}

tbinjiayou 2009-12-15
  • 打赏
  • 举报
回复
怎么问的是同一个问题
deyter 2009-12-15
  • 打赏
  • 举报
回复
还在问啊,我有一个类似的源码
告诉邮箱吧,我给你发个
huing 2009-12-15
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wartim 的回复:]
http://topic.csdn.net/u/20091215/14/c842597c-a94f-450e-b213-9163a72d9356.html

回答过了




[/Quote]

已经有很多了,提问前先搜索有无类似答案
小李所属 2009-12-15
  • 打赏
  • 举报
回复
我说的这个图片不是一张图片 而是N多张图片 在同一平面上滚动啊!

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧