Ant-aliased折线图 [英] Ant-aliased line charts
问题描述
我正在使用CR 2008开发版。我有一个折线图,里面有大约5-6个数据点。线条看起来非常锯齿状。我试图在Paint事件中使用抗锯齿,代码如下。
I am using CR 2008 Developer edition. I have a line chart with about 5-6 data points in it. The lines are appearing pretty jagged. I have tried to use anti-aliasing in the Paint events, the code is as follows.
private void frmBasicOpGraph_Paint( 对象 发件人, PaintEventArgs e)
private void frmBasicOpGraph_Paint(object sender, PaintEventArgs e)
{
e.Graphics.SmoothingMode = System.Drawing.Drawing2D。 SmoothingMode .AntiAlias;
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
}
private void crystalReportViewer1_Paint( object 发件人, PaintEventArgs e)
private void crystalReportViewer1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.SmoothingMode = System.Drawing.Drawing2D。 SmoothingMode .AntiAlias;
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
但是这没有用,我搜索了很多但是在C#或Crystal Reports中找不到任何其他属性来使图形更流畅。我将在这方面感谢任何帮助。
谢谢,
Asif
}
But this did not help, I have search alot but could not find any other property in C# or Crystal Reports to make the graphics smoother. I'll appreciate any help in this regards.
Thanks,
Asif
推荐答案
如果您申请在Web服务器上运行,请尝试以下解决方案:
在Web服务器上,从控制面板更改字体大小 - >显示 - >设置 - >高级 - > DPI设置
默认值为96 DPI,尝试自定义设置...说192 DPI。
重启机器后,看看它是否有效。
If you application run on a web server, try the following solution:
On your web server, change the font size from Control Panel -> Display -> Settings -> Advanced -> DPI Setting
The default is 96 DPI, try Custom Setting ... say 192 DPI.
After you reboot the machine, see if it works.
这篇关于Ant-aliased折线图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!