在JfreeChart中绘制模糊的阴影? [英] Drawing blured shadow in JfreeChart?
问题描述
这是帖子标题中的问题,但无论如何:
That's is question is in the title of this post, but anyway:
我使用JFreeChart在我的应用程序中创建图表.要求之一是柔和的模糊阴影而不是实心阴影,默认情况下会显示.
I use the JFreeChart to create chart in my app. And one of requirement is a soft blured shadow instead solid, which is presented by default.
我知道我可以使用
setShadowPaint(Paint paint);
但是这种方式意味着创建模糊的图像并将其添加到我的报告中.是否有建立案例以达到所需的效果?
but this way implies the creating blured image and adding it to the my report. Is there built case to achive needed effect ?
谢谢大家.
推荐答案
没有内置的内容,但是您可以使用ConvolveOp
来模糊图像.请参阅此处中引用的文章作为示例.您应该能够在BufferedImage
中撰写合适的图像并将其作为
There's nothing built-in, but you can use a ConvolveOp
to blur an image; see the articles cited here for examples. You should be able to compose a suitable image in a BufferedImage
and add it to the chart as an annotation.
这篇关于在JfreeChart中绘制模糊的阴影?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!