32 #if defined(Color_RECURSES)
33 #error Recursive header files inclusion detected in Color.h
34 #else // defined(Color_RECURSES)
36 #define Color_RECURSES
45 #include "DGtal/base/Common.h"
46 #include <boost/lexical_cast.hpp>
81 Color(
const unsigned int aRgb,
unsigned char aAlpha = 255 );
92 Color(
unsigned char aRedValue,
unsigned char aGreenValue,
unsigned char aBlueValue,
93 unsigned char aAlphaValue = 255 )
104 Color(
unsigned char aGrayValue,
unsigned char aAlphaValue = 255 )
115 Color(
const bool aValidColor =
true )
124 const unsigned char aGreenValue,
125 const unsigned char aBlueValue,
126 const unsigned char aAlphaValue );
129 void red(
const unsigned char aRedValue );
131 void green(
const unsigned char aGreenValue );
133 void blue(
const unsigned char aBlueValue );
135 void alpha(
const unsigned char aAlphaValue );
137 unsigned char red()
const ;
139 unsigned char green()
const ;
141 unsigned char blue()
const ;
143 unsigned char alpha()
const ;
175 std::string
svg()
const;
185 std::string
svgAlpha(
const char * aPrefix )
const;
197 std::string
tikz()
const;
272 #include "DGtal/io/Color.ih"
278 #endif // !defined Color_h
280 #undef Color_RECURSES
281 #endif // else defined(Color_RECURSES)