Library function to draw text on image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hscho
Posts: 8
Joined: 2015-10-14T00:20:06-07:00
Authentication code: 1151

Library function to draw text on image

Post by hscho »

Currently I'm working on a C application which makes an *.jpg file from a pixelarray. This has nothing to do with ImageMagick.
After the *.jpg file is created I start a Bash script which uses the "convert" from ImageMagick to draw a text on that image. Is it possible to include a ImageMagick Library which has a correspondat function which can draw text directly in my C application? So instead of calling a command line tool it would be done completely inside the application...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Library function to draw text on image

Post by fmw42 »

See the C API at http://www.imagemagick.org/script/api.php. Sorry I know little more than that.
hscho
Posts: 8
Joined: 2015-10-14T00:20:06-07:00
Authentication code: 1151

Re: Library function to draw text on image

Post by hscho »

ok, but is there an example for the draw text part I want to use?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Library function to draw text on image

Post by fmw42 »

Sorry, I do not use any API, so cannot help on that regard. Read any documentation listed on that link. That is the best I can suggest.
Post Reply