20 int main(
int ,
char ** argv)
29 if(getenv(
"SRCDIR") != 0)
30 srcdir = getenv(
"SRCDIR");
35 Image image(
"300x300",
"white" );
38 std::vector<Magick::Drawable> drawList;
49 for (
int i=0; i < 300; i += 10 )
75 std::vector<Magick::Coordinate> points;
87 const double dash_array[] = {4.0, 3.0, 0.0};
107 std::vector<VPath> path;
123 std::vector<Magick::Coordinate> points;
149 #if MAGICKCORE_FREETYPE_DELEGATE 150 if (getenv(
"MAGICK_FONT") != 0)
151 drawList.push_back(
DrawableFont(
string(getenv(
"MAGICK_FONT"))));
157 drawList.push_back(
DrawableText(0,0,
"This is a test!"));
165 image.
draw(drawList);
169 cout <<
"Writing image \"piddle_out.miff\" ..." << endl;
172 image.
write(
"piddle_out.miff" );
173 cout <<
"Writing MVG metafile \"piddle_out.mvg\" ..." << endl;
174 image.
write(
"piddle_out.mvg" );
180 catch( exception &error_ )
182 cout <<
"Caught exception: " << error_.what() << endl;
class MagickPPExport Color
int main(int, char **argv)
void draw(const Drawable &drawable_)
size_t columns(void) const
MagickPPExport void InitializeMagick(const char *path_)
void depth(const size_t depth_)
void compressType(const CompressionType compressType_)