18 int main(
int ,
char ** argv)
27 if(getenv(
"SRCDIR") != 0)
28 srcdir = getenv(
"SRCDIR");
33 Image image(
"300x300",
"white" );
39 std::list<Coordinate> poly_coord;
45 Image texture( srcdir +
"tile.miff" );
65 list<Drawable> drawlist;
74 image.
draw( drawlist );
88 image.
annotate(
"Hello world!",
"+150+20" );
92 image.
annotate(
"Goodbye cruel world!",
"+150+38" );
96 image.
annotate(
"I'm climbing the wall!",
"+280+120",
97 NorthWestGravity, 90.0 );
103 cout <<
"Writing image \"shapes_out.miff\" ..." << endl;
106 image.
write(
"shapes_out.miff" );
112 catch( exception &error_ )
114 cout <<
"Caught exception: " << error_.what() << endl;
class MagickPPExport Color
void annotate(const std::string &text_, const Geometry &location_)
void floodFillColor(const Geometry &point_, const Color &fillColor_)
int main(int, char **argv)
void strokeWidth(const double strokeWidth_)
void strokeColor(const Color &strokeColor_)
void colorFuzz(const double fuzz_)
void fontPointsize(const double pointSize_)
void fillColor(const Color &fillColor_)
void draw(const Drawable &drawable_)
void isValid(const bool isValid_)
MagickPPExport void InitializeMagick(const char *path_)
void depth(const size_t depth_)
void compressType(const CompressionType compressType_)
void penTexture(const Image &penTexture_)