Page tree

Image generation is possible for the structures from chemaxon API with wide range of parameters. The detailed documentation about the supported image formats can be found in the Image export in Marvin document.

After applying atom and bond coloring, font setting on a molecule like in the example Atom and bond-set handling the formatted structure is exported into png image format, with 400 pixel width and height, atom and bond set coloring, transparent background:

MolExporter exporter = new MolExporter("setcolors.png",
		 "png:w400,h400,setcolors,transbg");
exporter.write(mol);
exporter.close();

 

For a complete source code, please see SetColoring.java.