Bob Hanson wrote:
> Ah -- interesting. Only the CSS method works with Opera 8.55. From a
> Jmol point of view there is no reason not to resize -- the code is all
> set up for it, and it is done all the time as standard operation with
> the application. I think we can provisionally recommend the CSS method.
> Lots of interesting possibilities there. Note that the
> getProperty("image") method then gets you a much higher resolution shot,
> and you can do the resize just temporarily, get the image, and then
> resize back if you wanted.
>
>
I tried to implement this as a "snapshot" button (Jmol 11.1.9):
1) resize applet to maximum (2000x2000)
2) jmolGetPropertyAsString("image")
3) resize applet back to default size (600x600)
Unfortunately it didn't work. The snapshot was done with 600x600 pixels.
It looks like a timing problem. If I separate resizing and snapshot into
two buttons the snapshot is done with 2000x2000 pixels.
But there is still another problem. After resizing back to 600x600 pixel
the view isn't adapted to the new applet size. In the application the
adaptation is done as expected (and required, I would say).
Regards,
Rolf
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers