Page 1 of 1

Text to bmp image using MagikWand

Posted: 2012-06-07T00:43:45-07:00
by cicada
Hi,

How do I use MagikWand's C API to convert a string like "Hello World" into a bmp image? Also need to prescribe font (Arial) and size.

Also, any way to position the text at a specified position on the bitmap?

Thanks!
C.

Re: Text to bmp image using MagikWand

Posted: 2012-06-07T01:47:48-07:00
by cicada
To further elaborate, what's the MagikWand code equivalent of the ImageMagik cli command:
"convert -pointsize 12 -font Arial label:HelloWorld hello.bmp"

Re: Text to bmp image using MagikWand

Posted: 2012-06-07T06:19:57-07:00
by cicada
Never mind, found what I was looking for here: http://members.shaw.ca/el.supremo/MagickWand/.

Re: Text to bmp image using MagikWand

Posted: 2012-06-19T17:30:57-07:00
by anthony
Essentually apply the settings, then 'read' the "label:" image. IM treats it as a 'psuedo-filename' when reading images.