how to creeate IE 6 friendly png graphics??

Discussion about JFreeChart related to stockmarket charts.
Locked
brettfavre
Posts: 2
Joined: Wed Nov 24, 2010 4:46 pm
antibot: No, of course not.
Contact:

how to creeate IE 6 friendly png graphics??

Post by brettfavre » Wed Nov 24, 2010 4:51 pm

hi
how to creeate IE 6 friendly png graphics??

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: how to creeate IE 6 friendly png graphics??

Post by skunk » Wed Nov 24, 2010 8:08 pm


skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: how to creeate IE 6 friendly png graphics??

Post by skunk » Wed Nov 24, 2010 10:12 pm

ChartUtilities contains two different methods to generate a PNG file from a chart

Code: Select all

public static void saveChartAsPNG(java.io.File file,
                                  JFreeChart chart,
                                  int width,
                                  int height,
                                  ChartRenderingInfo info)
                           throws java.io.IOException
and

Code: Select all

public static void saveChartAsPNG(java.io.File file,
                                  JFreeChart chart,
                                  int width,
                                  int height,
                                  ChartRenderingInfo info,
                                  boolean encodeAlpha,
                                  int compression)
                           throws java.io.IOException
Since the IE6 problem seems to be related to png transparency, you should try using either the first method, or the second method with the encodeAlpha argument set to false

brettfavre
Posts: 2
Joined: Wed Nov 24, 2010 4:46 pm
antibot: No, of course not.
Contact:

Re: how to creeate IE 6 friendly png graphics??

Post by brettfavre » Thu Nov 25, 2010 8:35 pm

Thanks skunk
I'll try and tell you about the results...............thanks a lot

Locked