Hi, Thomas, Thank you very much for the email. [I tried both JDK1.3 and JDK1.4, they give me same result. I know Batik use JDK's classes like java.awt.Image, etc. so I installed different JDK version on different machine. I guess this issue is not problem of JDK. Correct me if I was wrong.]
Situation changed, here is the story: I just figure out something, but I still have problem and I hope I can get help from you. :-) I spend many days on using Batik to do the SVG-> PNG conversion, trying to get the transparent background, but the PNG I got was with white background(or Black). (I should say: "I always see the white background from IE6."), please take a look at: http://www.dynazone.com/SVG/movingNotTransparent.htm I tried all kinds of approaches: change options, rewriting the Java source code. No one works. This afternoon, one friend gave me a hand, he used PhotoShop open that PNG file which generated by Batik: It is with transparent ground. (Wow, eventually I confirmed that it is the correct PNG file, although it can not display correctly in IE.) After some comparison, we found the we can see the transparent background if we use Photoshop change the image properties from 32Bit true color to 256 color(8bit). Please go to: http://www.dynazone.com/SVG/movingTransparent.htm (the PNG file in this page is different from the one in above link. this one PNG is changed by Photoshop from the PNG in above link.) So the difference tells me: if the PNG is 32Bit(ARGB each 8bits) format, IE will have trouble to view its transparent background. if PNG is with poorer depth, IE can treat it correctly. So it's IE's problem. ( I am using IE6. ) ==> New Problem, please help: So, my next approach would be trying to use Batik to convert SVG->PNG and specifying output file with 8 bits depth. I can't find the options from the Batik Usage which can do that. Then I added one line in PNGTranscoder.java: "params.setBitDepth(8);" but the generated file still have not-transparent background. (I doubt this way to do the modification, but I don't know how to do it.) Could you tell me how to specify the output PNG file's depth? (I have too limited image processing knowledge.) Thanks a lot, Leo BTW, I just tried above 2 pages with Netscape 6.2, both works well. ----- Original Message ----- From: "Thomas E Deweese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 5:41 PM Subject: Re: SVG->PNG, background tranparency problem. Help please > >>>>> "c" == classloader <[EMAIL PROTECTED]> writes: > > c> Hi, Vincent, I did use the latest version of Batik 1.1.1 > > c> Actually, my SVG file is very very small, I was wondering if I > c> should specify something in SVG file or not (before the conversion) > c> ? > > c> Have been working on that for 3 days, always got white background, > c> black one or other colors.(no matter how I change the option, or > c> the source code. ) Anyone has similar expeirence? Thanks a lot, > c> Leo > > What version of the JRE are you using. We just had a bug reported > for JRE 1.4 which sounds like your problem. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]