Re: [Jmol-users] generating static images dynamically

2007-12-11 Thread Chris Stockton
Is using JMol as I described above not supported or is there a way to do it? I've been able to create a process that executes a command that creates a jpeg on the file system. I can then read the jpeg from the file system and then stream it back to the client, but as you might image, it's very sl

Re: [Jmol-users] generating static images dynamically

2007-12-07 Thread Chris Stockton
How is the content of the image determined? I am pulling molfiles from a database based on an MDLNumber or some other identifier. Does "stream" mean that you want to send a series of images? Or do you want to send only a single one? I would like to send multiple images, but only one at a time. Fo

Re: [Jmol-users] generating static images dynamically

2007-12-07 Thread Chris Stockton
That's exactly what I'd like -- to have an API and to be able to use that API with JMol embedded in another application, in this case a JSP/Servlet web application. a very simple API would be something like byte[] imgData = JMol.renderJPEG(moleFileString); Then I'd have the raw image byte dat

Re: [Jmol-users] generating static images dynamically

2007-12-07 Thread rhuehne
Quoting Chris Stockton <[EMAIL PROTECTED]>: > Is there anyway of generating static images pro grammatically using JMol. > > I can generate them manually, using a command like: jmol.bat -s > script.spt-n -g200x200 JPEG: > image.jpg -x > but I'm hoping that there is an API somewhere in JMol that wou

Re: [Jmol-users] generating static images dynamically

2007-12-07 Thread Bob Hanson
Chris Stockton wrote: > Is there anyway of generating static images pro grammatically using JMol. > > I can generate them manually, using a command like: jmol.bat -s > script.spt -n -g200x200 JPEG:image.jpg -x > but I'm hoping that there is an API somewhere in JMol that would allow > me to gener

[Jmol-users] generating static images dynamically

2007-12-07 Thread Chris Stockton
Is there anyway of generating static images pro grammatically using JMol. I can generate them manually, using a command like: jmol.bat -s script.spt-n -g200x200 JPEG: image.jpg -x but I'm hoping that there is an API somewhere in JMol that would allow me to generate a static image from a molfile or