21 int main(
int ,
char ** argv)
30 if(getenv(
"SRCDIR") != 0)
31 srcdir = getenv(
"SRCDIR");
36 Image image(
"300x300",
"white" );
42 std::vector<Coordinate> poly_coord;
48 Image texture( srcdir +
"tile.miff" );
68 vector<Drawable> drawlist;
77 image.
draw( drawlist );
90 if (getenv(
"MAGICK_FONT") != 0)
91 image.
font(
string(getenv(
"MAGICK_FONT")));
93 #if MAGICKCORE_FREETYPE_DELEGATE 94 image.
annotate(
"Hello world!",
"+150+20" );
99 #if MAGICKCORE_FREETYPE_DELEGATE 100 image.
annotate(
"Goodbye cruel world!",
"+150+38" );
105 #if MAGICKCORE_FREETYPE_DELEGATE 106 image.
annotate(
"I'm climbing the wall!",
"+280+120",
107 NorthWestGravity, 90.0 );
114 cout <<
"Writing image \"shapes_out.miff\" ..." << endl;
117 image.
write(
"shapes_out.miff" );
123 catch( exception &error_ )
125 cout <<
"Caught exception: " << error_.what() << endl;
class MagickPPExport Color
void annotate(const std::string &text_, const Geometry &location_)
int main(int, char **argv)
void strokeWidth(const double strokeWidth_)
void strokeColor(const Color &strokeColor_)
void colorFuzz(const double fuzz_)
void font(const std::string &font_)
void fontPointsize(const double pointSize_)
void fillPattern(const Image &fillPattern_)
void fillColor(const Color &fillColor_)
void draw(const Drawable &drawable_)
void isValid(const bool isValid_)
void floodFillColor(const Geometry &point_, const Color &fillColor_, const bool invert_=false)
MagickPPExport void InitializeMagick(const char *path_)
void depth(const size_t depth_)
void compressType(const CompressionType compressType_)