Are you running on top of the official OB 2.3.2 Windows release? Does png generation work at the command-line using obabel? (obabel -:CCC -O tmp.png)
How about using the "_png2" format instead of "png"? - Noel On 12 June 2013 23:31, Matt Berlin <[email protected]> wrote: > So the example where you print the MW from SMILES worked just fine. As does > the following: > > Dim OBConv As New OBConversion() > Dim Mol As New OBMol() > > OBConv.SetInAndOutFormats("smi", "svg") > OBConv.ReadString(Mol, "CCC") > OBConv.WriteFile(Mol, "C:\output2.svg") > > If, however, the output is a png, the file is generated, but it is not a > valid png file. If you change the extension to .txt and open it, it only > contains > > " tEXtsmiles CCC ¿ ·X" > > I've relentlessly googled it, and the only lead I have is that I might need > a cairo library? I'd really appreciate any help getting this to work, it's > integral to a project I'm working on. Thanks for your time. > > > On Wed, Jun 12, 2013 at 2:24 AM, Noel O'Boyle <[email protected]> wrote: >> >> So...what exactly did and didn't work? For example, can you read a >> SMILES string and print its molecular weight? >> >> - Noel >> >> >> On 11 June 2013 23:48, Matt Berlin <[email protected]> wrote: >> > Hello, >> > I've spent a fair amount of time today trying to figure out how to >> > depict a >> > molecule as a .png using the .NET library. I'd like to be able to >> > generate >> > pictures of all the molecules in an sd file using VB.net, and can't find >> > any >> > easy way to go about this. Perhaps you can recommend something? >> > >> > --Matt >> > >> > >> > ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by Windows: >> > >> > Build for Windows Store. >> > >> > http://p.sf.net/sfu/windows-dev2dev >> > _______________________________________________ >> > OpenBabel-discuss mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss >> > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ OpenBabel-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
