| 229 | } |
| 230 | |
| 231 | color_t read24AsRgb(std::ifstream &file) |
| 232 | { |
| 233 | const uint8_t b = read8(file); |
| 234 | const uint8_t g = read8(file); |
| 235 | const uint8_t r = read8(file); |
| 236 | return rgba(r, g, b, 255); |
| 237 | } |
| 238 | |
| 239 | color_t read32AsRgb(std::ifstream &file, bool hasAlpha) |
| 240 | { |
no test coverage detected