19using namespace Magick;
21int main(
int ,
char ** argv)
30 if(getenv(
"SRCDIR") != 0)
31 srcdir = getenv(
"SRCDIR");
36 Image image(
"300x300",
"white" );
39 std::vector<Magick::Drawable> drawList;
45 (ssize_t) image.rows()));
51 for (
int i=0; i < 300; i += 10 )
77 std::vector<Magick::Coordinate> points;
89 const double dash_array[] = {4.0, 3.0, 0.0};
109 std::vector<VPath> path;
125 std::vector<Magick::Coordinate> points;
151#if defined(MAGICKCORE_FREETYPE_DELEGATE)
152 if (getenv(
"MAGICK_FONT") != 0)
153 drawList.push_back(
DrawableFont(
string(getenv(
"MAGICK_FONT"))));
159 drawList.push_back(
DrawableText(0,0,
"This is a test!"));
167 image.draw(drawList);
171 cout <<
"Writing image \"piddle_out.miff\" ..." << endl;
173 image.compressType( RLECompression );
174 image.write(
"piddle_out.miff" );
175 cout <<
"Writing MVG metafile \"piddle_out.mvg\" ..." << endl;
176 image.write(
"mvg:piddle_out.mvg" );
182 catch( exception &error_ )
184 cout <<
"Caught exception: " << error_.what() << endl;