Problem with annotate and drawing text functions
Posted: 2011-10-31T07:52:17-07:00
Hi,
I'm new with ImageMagick++.
I'm using it with Visual Studio 2008 (C++) and Windows 7 64 bits.
I have successed to compile it and to integrate it inside my application.
I have tried some functions such as drawing a rectangle or a circle inside an image and it worked.
However when I try to add a text it doesn't work. I have tried the draw method and the annotate method and both don't work.
The program runs normally but it just doesn't add anything to the image.
There are some behaviours that are very strange :
. when I use the draw method, the program crashes if I don't use first the font(<font name>) method of the Image class. I though it was enough to just use a DrawableFont object.
. if I use the following command in the command shell "convert -font Arial -fill blue -draw "text 10,10 'mytext here'" test.jpg result.jpg" then it works
I have tried the examples given in the tutorial but it doesn't work
Any idea ? Thanks.
I'm new with ImageMagick++.
I'm using it with Visual Studio 2008 (C++) and Windows 7 64 bits.
I have successed to compile it and to integrate it inside my application.
I have tried some functions such as drawing a rectangle or a circle inside an image and it worked.
However when I try to add a text it doesn't work. I have tried the draw method and the annotate method and both don't work.
The program runs normally but it just doesn't add anything to the image.
There are some behaviours that are very strange :
. when I use the draw method, the program crashes if I don't use first the font(<font name>) method of the Image class. I though it was enough to just use a DrawableFont object.
. if I use the following command in the command shell "convert -font Arial -fill blue -draw "text 10,10 'mytext here'" test.jpg result.jpg" then it works
I have tried the examples given in the tutorial but it doesn't work
Any idea ? Thanks.