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.  For example I
have a servlet that is responsible for streaming jpegs back to a client.  I
my servlet I would have code like this.
  String moleculeId = request.getParameter("id");
  String molfile = getMolfileById(moleculeId);
  byte[] image = getImageFromMolefile(molfile);  // Here is where JMol would
come into the picture
  response.write(image);

In the client html I would have an img tag
  <img src="http://localhost//MyApp/RenderMolfile?id=12345"/>

What triggers the creation of the image?
(e.g.: a user interaction in another web page)
The request from the client html to the servlet

On what kind of platform is it supposed to run?
(e.g. Windows or Linux/Unix)
Preferably both.

Thanks,
Chris

On Dec 7, 2007 4:22 PM, <[EMAIL PROTECTED]> wrote:

> 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 would allow
> me to
> > generate a static image from a molfile or smiles string that I could
> then
> > stream to a web page.
> >
>
> Please be more specific. I don't understand yet what you would like to do.
>
> How is the content of the image determined?
> (Is it for example done interactively by someone in a Jmol applet on a
> web page?
> Or is it determined by a fixed script?)
>
> Does "stream" mean that you want to send a series of images? Or do you
> want to send only a single one?
>
> What triggers the creation of the image?
> (e.g.: a user interaction in another web page)
>
> On what kind of platform is it supposed to run?
> (e.g. Windows or Linux/Unix)
>
> ...
>
> Regards,
> Rolf
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to