Hi Jmolers,

Two questions about images.

1). I would like to place 2 or 3 images into a JSmol, and I find that I can do 
that in the app, but not in JSmol, where only one appears at a time. That is, 
when I call for a second image with an echo command, the first image is not 
displayed, only the second. For example:

set echo ~test1 IMAGE “images/test1.jpg"
set echo ~test1 15% 95%
set echo ~test1 SCALE 0.6

set echo ~test2 IMAGE “images/test2.jpg" 
set echo ~test2 87% 99% 

results in the display of test2.jpg only. This is not true of the Jmol 
application, however, where both images are displayed.

2). I am using jpg images because when I use png or gif, I get a black 
background in the image itself, not desired since the JSmol background is 
white. This occurs regardless of whether the image has a white background or a 
transparent background. I recall that Jmol used to use the first pixel in a gif 
to determine a color to make transparent in the image.  However,  I cannot find 
any reference to this in the Jmol scripting doc, and anyway, I am not sure why 
that would give me a black background in the image, as opposed to a transparent 
background (the JSmol's background color is white).

Thanks,
Frieda

///////////////////////////////////////////

Frieda Reichsman
Molecules in Motion
Interactive Molecular Structures
http://www.moleculesinmotion.com

///////////////////////////////////////////





------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to