I have multiple charts of same size and I want to merge those into a single chart(image) and write into the output stream as single image.
Please help me in doing the task.
Thanks,
Gopi.
How to merge multiple mages?
Re: How to merge multiple mages?
If your ChartPanels are inside a JPanel (or other containers in Swing), then you can get a BufferedImage from it using this method:
http://stackoverflow.com/questions/1349 ... l-to-image
You could also get a BufferedImage from the ChartPanel for each chart and join these images together as a larger BufferedImage according to their location.
http://stackoverflow.com/questions/1349 ... l-to-image
You could also get a BufferedImage from the ChartPanel for each chart and join these images together as a larger BufferedImage according to their location.