18 int main(
int ,
char ** argv)
27 if(getenv(
"SRCDIR") != 0)
28 srcdir = getenv(
"SRCDIR");
33 Image image(
"300x300",
"white" );
39 std::vector<Coordinate> poly_coord;
45 Image texture( srcdir +
"tile.miff" );
65 vector<Drawable> drawlist;
74 image.
draw( drawlist );
87 if (getenv(
"MAGICK_FONT") != 0)
88 image.
font(
string(getenv(
"MAGICK_FONT")));
90 #if MAGICKCORE_FREETYPE_DELEGATE 91 image.
annotate(
"Hello world!",
"+150+20" );
96 #if MAGICKCORE_FREETYPE_DELEGATE 97 image.
annotate(
"Goodbye cruel world!",
"+150+38" );
102 #if MAGICKCORE_FREETYPE_DELEGATE 103 image.
annotate(
"I'm climbing the wall!",
"+280+120",
104 NorthWestGravity, 90.0 );
111 cout <<
"Writing image \"shapes_out.miff\" ..." << endl;
114 image.
write(
"shapes_out.miff" );
120 catch( exception &error_ )
122 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_)