how to creeate IE 6 friendly png graphics??

Discussion about JFreeChart related to stockmarket charts.

how to creeate IE 6 friendly png graphics??

Postby brettfavre » Wed Nov 24, 2010 4:51 pm

hi
how to creeate IE 6 friendly png graphics??
brettfavre
 
Posts: 2
Joined: Wed Nov 24, 2010 4:46 pm

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

Postby 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??

Postby 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
skunk
 
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

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

Postby brettfavre » Thu Nov 25, 2010 8:35 pm

Thanks skunk
I'll try and tell you about the results...............thanks a lot
brettfavre
 
Posts: 2
Joined: Wed Nov 24, 2010 4:46 pm


Return to JFreeChart - Stockmarket

Who is online

Users browsing this forum: No registered users and 4 guests