> I am wondering if there is an easy way to render just the atoms and bonds
> without drawing the background,
> in other words, to render a transparent background.

No. This is not easily accomplished.

> Platform3D.clearScreenBuffer seems to be called to set the background
> color every time before a Jmol image
> is synthesized. From the name of the argument passed to that method, one
> could infer that giving an alpha value
> might do it (it however does not seem to work).

It is probably the case that the Image that is created does not support an
alpha channel.

> I would appreciate if you could tell where in the source code I should
> look at in order to do this.

You should not look at the source code.

Rather, you should transform image after receiving it from Jmol.

Get the Image from Jmol, then transform the image to a new image where the
black pixels have a zero alpha channel value.

You are going to be laying this image on top of something else anyway.

This work will be *much* more easily accomplished within your own code.


Miguel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to