步步高,我怎样画Checker和Board? [英] Backgammon , How can I draw Checker and Board?

查看:88
本文介绍了步步高,我怎样画Checker和Board?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在编程西洋双陆棋。但我不会画Checker和Board。



我想要请使用以下链接之一。



1.) http:/ /postimage.org/image/igsft62qb/8d2eaf4d/ [ ^ ]



2.) http://postimage.org/ image / 9ufzgrrbv / [ ^ ]





如何在C#中绘制Checker和Board?

请帮帮我。谢谢你的回答。

解决方案

有两种基本方法可以做到这一点:你可以使用位图,也可以手动绘制。



位图解决方案可能会产生更好看的结果(以及更容易皮肤)和a这很可能也很容易。



由于这是步步高,只有30件,所以这不是一个大问题通过PictureBox绘制计数器(而不是在paint事件中手动绘制图像)。您需要做的就是通过更改位置属性来移动它们。



Google应该能够帮助您找到您喜欢的版权免费图像 - 然后将其设置为表单或控件的背景图像。



这是一个简单的位 - 使它成为一个好的玩家,现在它将会是难! :笑:

Hi,
I''m programming Backgammon.But I don''t draw Checker and Board.

I want to make one of the below links.

1.)http://postimage.org/image/igsft62qb/8d2eaf4d/[^]

2.)http://postimage.org/image/9ufzgrrbv/[^]


How can I draw that Checker and Board in C#?
Please help me.Thank you for answer.

解决方案

There are two basic ways to do this: you could use a bitmap or you could draw it manually.

The bitmap solution is probably going to produce a better looking result (as well as being easier to "skin") and annoyingly, it''s probably easier to do as well.

Since this is backgammon, there are only 30 pieces, so it wouldn''t be a major problem to draw your counters via a PictureBox (rather than drawing the image manually in the paint event. All you have to do then is move them by changing the Position property.

Google should be able to help you find a copyright free image of a board that you like - then just set it as the background image for your form or control.

This is the easy bit - making it a good player, now that''s going to be difficult! :laugh:


这篇关于步步高,我怎样画Checker和Board?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆