C: adding text to images
Giles Orr
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Dec 22 23:15:03 UTC 2010
A friend of mine recently sent me the following question. I hadn't
any idea, and got his approval to post here. Can anyone assist?
Question:
Background: I'm looking at satellite data. I wrote a program in C that
does the following: Slurp up raster data in HDF format, feed the data
to a program that runs something called iterated conditional modes,
then writes out the raster data in TIFF.
Problem: How do I make a caption with a legend and some text in it?
I really don't want to do this pixel-by-pixel in the raster data. I was
hoping for an easy C function like:
add_text (x_loc, y_loc, size, text_string);
...that would then make the caption in the TIFF.
I have looked around, and will continue to do so, but haven't found
anything I like yet. I know Gimp can do this, but I don't want to use
the GUI: I'd like to use this in my C program.
Any suggestions?
--
Giles
http://www.gilesorr.com/
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list