I am using the BufferedImage for dynamic server side chart creation. The chart is drawn using the graphics2d object acquired from BufferedImage.

The problem is when I display the chart on the browser it displays the y-axis data upside down i.e. higher range values are displayed at the lower left corner of the browser window.

Can some one tell me how to flip the image so that the chart range values increase from lower left?