Hi

I'm trying to print some text on an image using ImageMagick (Magick++) 
from my C++ program. However I get an exception:
---------------
  UnableToOpenConfigureFile 'type.xml' @ configure.c/GetConfigureOptions/553
---------------


Here's my code sample (the class where the code is written inherits from 
Magick::Image):
---------------
    // Set font
    string fontname = "Arial";
    fontPointsize( 16 );
    font( fontname );
    strokeColor(Magick::Color(255, 0, 0));
    fillColor(Magick::Color(255, 0, 0));
    strokeWidth(2);

    // Specify text
    std::ostringstream ost; ost << i;

    // Drawable class
    Magick::DrawableFont font("Arial");
    Magick::DrawableText text(pos.GetX() + _center.GetX(), pos.GetY() + 
_center.GetY(), ost.str());

    // Draw to image
    draw(font);
    draw(text);
---------------

The error seem to happen on "draw(text)".


I can't really see what's wrong.

If I put similar code into the example project (demo) I don't get this 
error. However everything else in my own project seems to work. I can't 
find the difference between the projects except their location.

I used InitializeMagick(NULL), InitializeMagick(magick-home-directory), 
InitializeMagick(*argv) and none of the above seem to change anything.


Do I need to set up some specific variables to get it working! What am I 
missing?



Best regards,

Preben Holm
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to