Balram Suman wrote:

>Hi all, 
>
>I have few movies prepared on jmol and playing in the web browser using java
>applet. Now, I want to have few particular frames of the movies. Could
>someone help me with that?
>
>  
>
you mean movies that are animations?

I would do this from the application, not the applet.

Application:

The command to issue after pausing the animation is

write JPG 500 500 "pic.jpg"

(put the size you want in for those two numbers)

Or, from the applet, you have to get the base64-encoded image. From 
JavaScript:

s = jmolGetPropertyAsString("image")

The HTML that then goes with that is 

'<img src="data:image/jpeg;base64,'+s+'">'


Then you can open a new window and display that. See 
http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/new.htm 
and 
http://www.stolaf.edu/academics/chemapps/jmol/docs/examples-11/new.js to 
see an example of how this is done.
and click "image" below the applet. You should see it work. There are 
browser limitations to this -- must be Firefox, not IE. But that should 
be fine for development work. Let us know if that is not enough of a tip.

Bob Hanson






>Thanks,
>-Balram 
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to