OEWriteImageToString¶
std::string OEWriteImageToString(const std::string &ext,
                                 const OEImage &image)
Writes the image into a string.
- ext
- The extension which determine the type of the image. 
- image
- The OEImage object which is being written into the string. 
Example:
OEGraphMol mol;
OESmilesToMol(mol, "c1ccccc1");
OEPrepareDepiction(mol);
OEImage image(200, 200);
OERenderMolecule(image, mol);
const std::string data = OEWriteImageToString("svg", image);
See also
- OEIsRegisteredImageFilefunction