using namespace LibBoard;
int main(int, char *[])
{
#if (BOARD_HAVE_MAGICKPLUSPLUS == 1)
Image michel(
"../resources/saint_michel.jpg", 0, 0, 200);
Polyline rectangle = LibBoard::rectangle(michel.
boundingBox(IgnoreLineWidth), Color::Red, Color::Silver, 1);
g << rectangle;
g << michel;
board << tiling;
Image avatar(
"../resources/avatar.png", 0, 0, 80);
board << avatars;
#else
Text text(10, -40,
"Magick++ is required", Fonts::Helvetica, 10);
board << LibBoard::rectangle(text.
boundingBox(LibBoard::IgnoreLineWidth).
grow(5), Color::Red, Color::White, 1.0, SolidStyle, RoundCap, RoundJoin);
board << text;
#endif
board.
saveEPS(
"images.eps", 20.0, 30.0, 2.0, Board::UInche);
board.
saveSVG(
"images_40x60cm.svg", 40.0, 60.0, 10.0, Board::UCentimeter);
board.
saveFIG(
"images.fig", 20.0, 20.0, 2.0, Board::UCentimeter);
board.
saveSVG(
"images.svg", Board::BoundingBox, 0.0, Board::UCentimeter);
}