Jfreechart垂直线模糊 [英] Jfreechart vertical line is blurry

查看:184
本文介绍了Jfreechart垂直线模糊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JFreechart生成一些绘图,但发现绘图中的线条模糊,但是演示显示所有线条都很细且没有任何模糊,我想知道是否有任何可以在其上生成高质量绘图的一个面板。

解决方案

有关更多信息,我无法解释渲染和问题中说明的重采样工件。从


I am using JFreechart to generate some plots, and I found the lines in my plot is blurry, but the demo shows that all the lines are thin and without any blurry, I was wondering if there any to generate good quality plot on a panel.

解决方案

With more information, I can't explain the rendering and resampling artifact illustrated in your question. Starting from MinMaxCategoryPlotDemo1.java in the demo, I added this line to get the PNG image shown.

ChartUtilities.saveChartAsPNG(new File("temp.png"), jfreechart, 1024, 768);

In particular,

  • I chose a larger size, as it's generally better to have more pixels than fewer when resampling.

  • I chose PNG, a lossless image format used in the MinMaxCategoryRenderer API image.

Click to enlarge:

这篇关于Jfreechart垂直线模糊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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