Robert, Actually I don't know jmol script can write PNG file directly, but it's still not what I want. What I'm writing is a servlet that takes PDB file content as POST param, and return the binary content of PNG image as response stream. "write image" script writes directly into a local file. It's possible to use the script to write PNG as a temp file on local disk, and then read it into response stream of HTTP response. But the script is also executed in a unblocked way, so it's still a problem to determine when to read the image file from my local disk.
Best Regards, Duan Lian >From: Robert Hanson <[EMAIL PROTECTED]> - 2008-12-06 23:16 >Duan Lian, > >Please tell us a bit more about your PDB2PNG renderer. Specifically, >why not just use the capability of Jmol to write PNG files? >You can even do this in command-line mode without ever calling up a >display. Is there something special that you are trying to do, or is >t possible that you didn't realize that Jmol does this already. > >For example: > >load =1crn >cartoons on;color group >write image 500 500 PNG "myfile.png" ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users