Re: Any Libraries Out There for Generating Graphics Files? [message #169925 is a reply to message #169910] |
Thu, 30 September 2010 11:20 |
Edward
Messages: 1 Registered: September 2010
Karma:
|
Junior Member |
|
|
Datesfat Chicks wrote:
> I'd like to produce graphs and figures, exported to a file like a .PNG
> or .GIF or .JPG.
>
> I'd like to produce these files directly from a C program.
> <snip>
> Thanks for any advice.
>
> DF.
Not /quite/ what you asked for, but when I wanted something similar (it
was graphs in my case), I found a very lightweight solution was to build
everything in an array with some handhacked functions, emit a PNM (which
is very easy; you just write a list of numbers out in textual form), and
then run pnmtopng over it. So, if lightness is a consideration and your
actual requirements are very simple (lines, boxes, and text), you might
want to go for something like that, rather than having the overhead of a
full-featured drawing library.
--
"Sanity" is the last refuge of the unimaginative.
visit my useless website -- http://dev-null.chu.cam.ac.uk
|
|
|