Allocate a cleared transparent buffer.
<insightdock/image_buffer.h>
ImageBuffer(
std::size_t width,
std::size_t height);
If width * height exceeds kMaxPixels the result is an empty (0×0) buffer rather than a multi-gigabyte allocation; exporters report this as an error.
| Name | Description |
|---|---|
| width | Pixel width. |
| height | Pixel height. |