MFC如何绘制五角星 [英] MFC how to draw a pentagram

查看:743
本文介绍了MFC如何绘制五角星的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


MFC如何绘制五角星


MFC how to draw a pentagram

推荐答案

对圆使用标准公式

Use the standard formula for a circle

x = cos(angle);
y = sin(angle);



在圆上仅绘制5个点,每个点成角度(360/5).

将每个点连接到另一个点以完成五角星形.



draw only 5 points on the circle, each at angle (360/5).

Connect each point to every other point to complete the pentagram.


您用谷歌搜索了吗?

http://www.gidforums.com/t-17006.html [ http://www.codersource.net/mfc/opengl/coloring-opengl-tutorial- 2.aspx [ ^ ]
Did you google it??

http://www.gidforums.com/t-17006.html[^]

http://www.codersource.net/mfc/opengl/coloring-opengl-tutorial-2.aspx[^]


这篇关于MFC如何绘制五角星的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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