insightdock::charts::ImageBuffer::ImageBuffer

Allocate a cleared transparent buffer.

Synopsis

Declared in <insightdock/image_buffer.h>
ImageBuffer(
    std::size_t width,
    std::size_t height);

Description

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.

Parameters

Name Description
width Pixel width.
height Pixel height.

Created with MrDocs