16using namespace Magick;
18int main(
int ,
char ** argv)
22 InitializeMagick(*argv);
27 if(getenv(
"SRCDIR") != 0)
28 srcdir = getenv(
"SRCDIR");
33 Image image(
"300x300",
"white" );
36 std::list<Magick::Drawable> drawList;
47 for (
int i=0; i < 300; i += 10 )
73 std::list<Magick::Coordinate> points;
85 const double dash_array[] = {4.0, 3.0, 0.0};
105 std::list<VPath> path;
121 std::list<Magick::Coordinate> points;
147#if defined(MAGICKCORE_FREETYPE_DELEGATE)
148 if (getenv(
"MAGICK_FONT") != 0)
149 drawList.push_back(
DrawableFont(
string(getenv(
"MAGICK_FONT"))));
155 drawList.push_back(
DrawableText(0,0,
"This is a test!"));
163 image.draw(drawList);
167 cout <<
"Writing image \"piddle_out.miff\" ..." << endl;
169 image.compressType( RLECompression );
170 image.write(
"piddle_out.miff" );
171 cout <<
"Writing MVG metafile \"piddle_out.mvg\" ..." << endl;
172 image.write(
"mvg:piddle_out.mvg" );
178 catch( exception &error_ )
180 cout <<
"Caught exception: " << error_.what() << endl;