Page 1 of 1

how to creeate IE 6 friendly png graphics??

Posted: Wed Nov 24, 2010 4:51 pm
by brettfavre
hi
how to creeate IE 6 friendly png graphics??

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

Posted: Wed Nov 24, 2010 8:08 pm
by skunk

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

Posted: Wed Nov 24, 2010 10:12 pm
by skunk
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

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

Posted: Thu Nov 25, 2010 8:35 pm
by brettfavre
Thanks skunk
I'll try and tell you about the results...............thanks a lot