如何在不使用图表控件的情况下制作饼图 [英] How do I make a pie graph without using a chart control

查看:81
本文介绍了如何在不使用图表控件的情况下制作饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的学校项目中制作一个饼图,但我不必使用图表控件。

I want to make a pie graph in my school project, but I do not have to use a chart control.

推荐答案

通过探索GDI +设施开始在.NET中的System.Drawing NameSpace中学习钢笔和画笔。



探索System.Drawing.Drawing2D NameSpace,并学习如何使用'GraphicsPath。



构造路径,填充/描边,然后在油漆事件中渲染。



做一些研究这里有CodeProject:这里有几篇文章是绘制饼图的教程,范围从相对简单:[ ^ ]复杂(3d):[ ^ ]
Get started by exploring the GDI+ facilities in System.Drawing NameSpace in .NET and study Pens and Brushes.

Explore the System.Drawing.Drawing2D NameSpace, and learn how to use 'GraphicsPath.

Construct a Path, fill/stroke it, then render it in a 'Paint Event.

Do some research here on CodeProject: there are several articles here that are tutorials on drawing pie-charts, ranging from relatively simple: [^] to complex (3d): [^]


这篇关于如何在不使用图表控件的情况下制作饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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