| 437 | } |
| 438 | |
| 439 | void Image::copyInto(Vec2U const& min, Image const& image) { |
| 440 | Vec2U max = (min + image.size()).piecewiseMin(size()); |
| 441 | |
| 442 | for (unsigned y = min[1]; y < max[1]; ++y) { |
| 443 | for (unsigned x = min[0]; x < max[0]; ++x) |
| 444 | set(x, y, image.get(Vec2U(x, y) - min)); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | void Image::drawInto(Vec2U const& min, Image const& image) { |
| 449 | Vec2U max = (min + image.size()).piecewiseMin(size()); |
no test coverage detected