Text to bmp image using MagikWand

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
cicada
Posts: 4
Joined: 2012-06-07T00:36:33-07:00
Authentication code: 13

Text to bmp image using MagikWand

Post by cicada » 2012-06-07T00:43:45-07:00

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.

cicada
Posts: 4
Joined: 2012-06-07T00:36:33-07:00
Authentication code: 13

Re: Text to bmp image using MagikWand

Post by cicada » 2012-06-07T01:47:48-07:00

To further elaborate, what's the MagikWand code equivalent of the ImageMagik cli command:
"convert -pointsize 12 -font Arial label:HelloWorld hello.bmp"

cicada
Posts: 4
Joined: 2012-06-07T00:36:33-07:00
Authentication code: 13

Re: Text to bmp image using MagikWand

Post by cicada » 2012-06-07T06:19:57-07:00

Never mind, found what I was looking for here: http://members.shaw.ca/el.supremo/MagickWand/.

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Text to bmp image using MagikWand

Post by anthony » 2012-06-19T17:30:57-07:00

Essentually apply the settings, then 'read' the "label:" image. IM treats it as a 'psuedo-filename' when reading images.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Post Reply