| 280 | } |
| 281 | |
| 282 | void Image::fill(Vec3B const& c) { |
| 283 | if (bitsPerPixel() == 24) { |
| 284 | for (unsigned y = 0; y < m_height; ++y) |
| 285 | for (unsigned x = 0; x < m_width; ++x) |
| 286 | set24(x, y, c); |
| 287 | } else { |
| 288 | for (unsigned y = 0; y < m_height; ++y) |
| 289 | for (unsigned x = 0; x < m_width; ++x) |
| 290 | set32(x, y, Vec4B(c, 255)); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | void Image::fill(Vec4B const& c) { |
| 295 | if (bitsPerPixel() == 24) { |
no test coverage detected