| 134 | int height; |
| 135 | |
| 136 | CanvasMapped(fl::span<RGB_T> buf, const XYMap& map) FL_NOEXCEPT |
| 137 | : pixels(buf), xymap(&map), |
| 138 | width(map.getWidth()), height(map.getHeight()) {} |
| 139 | |
| 140 | int size() const FL_NOEXCEPT { return width * height; } |
| 141 | RGB_T& at(int x, int y) FL_NOEXCEPT { return pixels[xymap->mapToIndex(x, y)]; } |