44#include "DGtal/base/Common.h"
45#include "DGtal/io/Color.h"
46#include "DGtal/io/boards/Board2D.h"
47#include "DGtal/helpers/StdDefs.h"
60 const Color & fillColor )
73 trace.beginBlock (
"Example dgtalBoard2D-3-custom-points" );
80 Color red( 255, 0, 0 );
81 Color dred( 192, 0, 0 );
82 Color green( 0, 255, 0 );
83 Color dgreen( 0, 192, 0 );
84 Color blue( 0, 0, 255 );
85 Color dblue( 0, 0, 192 );
95 board.
saveSVG(
"dgtalBoard2D-3-custom-points.svg");
96 board.
saveEPS(
"dgtalBoard2D-3-custom-points.eps");
97 board.
saveTikZ(
"dgtalBoard2D-3-custom-points.tikz");
99#ifdef DGTAL_WITH_CAIRO
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Structure representing an RGB triple with alpha component.
Board & setPenColor(const DGtal::Color &color)
void saveTikZ(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Board & setFillColor(const DGtal::Color &color)
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
void saveCairo(const char *filename, CairoType type=CairoPNG, PageSize size=Board::BoundingBox, double margin=10.0) const
Z2i this namespace gathers the standard of types for 2D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.
MyDrawStyleCustomColor(const Color &penColor, const Color &fillColor)
virtual void setStyle(Board2D &aboard) const