| 4 | namespace snap::drawing { |
| 5 | |
| 6 | TestBitmap::TestBitmap(int width, int height) : _width(width), _height(height) { |
| 7 | auto offset = getPixelOffset(0, height); |
| 8 | _pixels.resize(offset); |
| 9 | |
| 10 | for (int y = 0; y < height; y++) { |
| 11 | for (int x = 0; x < width; x++) { |
| 12 | setPixel(x, y, Color::white()); |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | TestBitmap::~TestBitmap() = default; |
| 18 |