"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."
Thanks for your prompt reply, Miguel. The question is that I need to render a stream of molecular dynamics data computed
in real time and meanwhile generate dynamical Jmol images at a rate of about 20 fps on the fly. I suspect that transforming
the resulting images by locating the black pixels would be a major bottleneck.

Is there any possibility of modifying my own copy of Swing3D to add a transparency channel? For example, add them to
rgbColorModel and sampleModelBitMasks? DirectionColorModel supports alphaMask.

Thanks again anyway.

Reply via email to