create reaction image from toBinFormat("png")

User 37df300f74

30-06-2010 20:50:18

Hi,


I need to create a reaction image ("png" from RxnMolecule, but it seems that the reaction arrow is not visible. I am currently locked with 5.1.7 version due to corporate environment, but in your release notes, it seems that the bug has been fixed in 5.2.2. So I am wondering whether you guy can build a marvinBeans.jar for 5.1.7 with this bug fixed.


Thanks a lot for your help.

ChemAxon 990acf0dec

01-07-2010 11:01:27

Hi,


It would be very difficult for us to reopen such an old, already dead development branch. How critical is it for you?


A possible workaround could be to use molprinter to draw the compound, and then draw an arrow on it separately, then finally create a PNG from it.


Tamas Vertse knows more about this workaround, so I assign this topic to him.


Best regards,


Akos

User 37df300f74

01-07-2010 13:17:24

Hi Akos,


Thanks for your quick rply. I realized it is a old version, so any workaround would be great before we can move to newer version.


 

ChemAxon 7c2d26e5cf

01-07-2010 15:07:00

Please investigate the chemaxon.marvin.MolPrinter API.


Just create a BufferdImage object. You can get its graphics and pass
it to MolPrinter to paint the structure on it. After then, you can
draw further objects on it. Finally, you can feed your PNG exporter with
the BufferedImage object to transform graphics content into PNG file
format. (E.g. you can use ImageIO API to do that, like in this example:
http://www.exampledepot.com/egs/javax.imageio/Graphic2File.html)


Is it suitable for you?