From: Nathaniel G. A. <nat...@ya...> - 2003-05-26 12:43:59
|
if you just want an Image, you can call: org.jCharts.encoders.BinaryEncoderUtil.render( Chart ) which returns a BufferedImage. May I ask why you need access to the Image Object? If you are using Swing, take a look at the Swing sample in the org.jCharts.test package as you will not need to create an Image instance; you can set the Graphics Object from your Swing Component directly into jCharts. --- Pal Perinbam <pal...@ya...> wrote: > Hi Nathaniel, > How to create a java.awt.Image reference for Images constructed by jCharts? > After successful creation of a jCharts image(say a pie chart image), I just want to convert this > to java.awt.Image on the fly. > I don't want to save the image generated as .jpg anywhere on the disk as it may consume space on > the disk. > How can I achieve this? > Thank you. > > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |