added alpha to to_string method.

rgb ( R, B, G, A)

TODO: modify CSS color parser to accept alpha channel e.g 
rgb (R,G,B,A)
#RRGGBBAA
#RGBA
This commit is contained in:
Artem Pavlenko 2006-09-15 08:19:03 +00:00
parent 2d04ce0360
commit 8a72060fad

View file

@ -100,13 +100,18 @@ namespace mapnik {
{
return abgr_ == other.abgr_;
}
inline std::string to_string() const
{
std::stringstream ss;
ss << "rgb (" << red() << "," << green() << "," << blue() <<")";
ss << "rgb ("
<< red() << ","
<< green() << ","
<< blue() << ","
<< alpha() << ")";
return ss.str();
}
inline std::string to_hex_string() const
{
std::stringstream ss;