Re: Any Libraries Out There for Generating Graphics Files? [message #169916 is a reply to message #169910] |
Thu, 30 September 2010 06:51 |
Nick
Messages: 2 Registered: September 2010
Karma:
|
Junior Member |
|
|
"Datesfat Chicks" <datesfat(dot)chicks(at)gmail(dot)com> writes:
> 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.
>
> I remember from using PHP that PHP has some functionality built in
> where you create a graphic canvas then make calls to put lines and
> text on it, then you can emit it as a .PNG. I'm looking for something
> like that: a bunch of graphics primitives that draw on a canvas
> (where the canvas is a software construct), then you can export the
> canvas to a file when you're done manipulating it.
>
> Are there any libraries like this, callable from C, out there?
GD. Works from C, written in C, you can hack the source code. Has an
PHP interface. Generates png, jpg, you name it.
There's ever half a dozen lines of my code in there.
--
Online waterways route planner | http://canalplan.eu
Plan trips, see photos, check facilities | http://canalplan.org.uk
|
|
|