I would like to write a function in C that creates a PNG plot using
plplot and then returns a gdImagePtr representing that image.
After a couple days of investigation, I can only come up with the
following obvious solution:
FILE * outfile;
outfile = fopen("output.png", "wb");
/* plot making code .... */
outfile = fopen("output.png", "rb");
im_in = gdImageCreateFromPng(outfile);
Is there a way to accomplish this result without the intermediate step
of writing the image file to disk?
Thanks very much,