27.08.2013 Views

Better Depictions with Ogham

Better Depictions with Ogham

Better Depictions with Ogham

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

def depictWeb(query):<br />

. . . .<br />

import cStringIO<br />

buffer = cStringIO.StringIO()<br />

surface.write_to_png(buffer)<br />

png_string=buffer.getvalue()<br />

buffer.close()<br />

return [png_string]<br />

mol2png_server.py (part 2)<br />

Draw to PyCairo surface, write to buffer in memory, return as PNG.<br />

CUP XI. Santa Fe<br />

April 19, 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!