| 237 | } |
| 238 | |
| 239 | color_t read32AsRgb(std::ifstream &file, bool hasAlpha) |
| 240 | { |
| 241 | const uint8_t b = read8(file); |
| 242 | const uint8_t g = read8(file); |
| 243 | const uint8_t r = read8(file); |
| 244 | uint8_t a = read8(file); |
| 245 | if (!hasAlpha) |
| 246 | a = 255; |
| 247 | return rgba(r, g, b, a); |
| 248 | } |
| 249 | |
| 250 | void setColorInImage( |
| 251 | dec::Targa::Image &image, color_t color, unsigned x, unsigned y, const Header &header) |
no test coverage detected