16 |
inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue) |
inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue) |
17 |
{ |
{ |
18 |
|
|
19 |
char *rend,*gend,*bend; |
char *rend=0,*gend=0,*bend=0; |
20 |
int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16); |
int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16); |
21 |
int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16); |
int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16); |
22 |
int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16); |
int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16); |