| 46 | { |
| 47 | |
| 48 | std::string ColorToString(const unsigned char* rgb) |
| 49 | { |
| 50 | std::ostringstream out; |
| 51 | out << "#"; |
| 52 | for (int i = 0; i < 3; ++i) |
| 53 | { |
| 54 | out << std::setw(2) << std::right << std::setfill('0') << std::hex |
| 55 | << static_cast<unsigned int>(rgb[i]); |
| 56 | } |
| 57 | return out.str(); |
| 58 | } |
| 59 | |
| 60 | // Bbox is xmin, xmax, ymin, ymax. Writes: |
| 61 | // "xmin,ymin,xmax,ymax" |
no test coverage detected