diff --git a/include/color.hpp b/include/color.hpp index dda56cb69..b9f75b600 100644 --- a/include/color.hpp +++ b/include/color.hpp @@ -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;