我怎样才能简单地拥有移动的图形C#? [英] how can I simply have a moving graphic C#?
本文介绍了我怎样才能简单地拥有移动的图形C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,我该如何创建图形球并使它在窗体中移动,就像它被困在窗体中一样??
从下面的评论中复制的其他信息
这就是我在说的
http://en.wikipedia.org/wiki/Elastic_collision [
hey guys how can I create a graphic ball and make it to move around the form like its trapped in the form???
additional information copied from comment below
this is what Im talking about
http://en.wikipedia.org/wiki/Elastic_collision[^]
with only one ball
推荐答案
如果您真的想看看如何做,请在CP上找到一篇文章.它的评分不高,但可能会为您提供一个起点: ^ ]
If you really want to see how to do it, there is an article here on CP. It isn''t rated well at all, but it might give you a starting point: Simple Ball Animation with Border Collision using VS 2005 and .NET 2.0[^]
是的,您可以做到.一个很好的例子:
让我们玩一些斯诺克台球:
C#斯诺克 [
Yes, you can do it. A good example here:
Lets play some snooker:
C# Snooker[^]
这篇关于我怎样才能简单地拥有移动的图形C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文