Image Generation and Colors

User 7b0ee04e66

23-10-2009 16:35:07

Hello


I am using the Hit Display Tool to align the results to my query. I then want to convert the output to an image. The problem is that the image is losing all the colors which came from the alignment and the default atom colors are used.


byte[] img = result.exportToBinFormat("png:w" + width + ",h" + height + ",-a,chiral_all,transbg"); 

How can I keep the colors in the exported image ?


Thanks


Catherine


 


 

ChemAxon 909aee4527

26-10-2009 17:08:17

Hi Catherine,


we are sorry for the delay of the reply, it is due to some holidays.


We will probably have the answer tomorrow.


Kind regards,
Judit

ChemAxon e500b51457

26-10-2009 20:49:56


Hi Catherine,


Please use the "png:setcolors" option at image
export to apply atom/bond set coloring.


More information about image export options is available:


http://www.chemaxon.com/marvin/help/formats/images-doc.html


I hope this helps.


Best regards,


Erika.


User 7b0ee04e66

27-10-2009 09:00:40

Thanks for your help


I have used


byte[] img = result.exportToBinFormat("png:w" + width + ",h" + height + "setcolors,-a,chiral_all,transbg"); 

Catherine