|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
CPU-readable bitmap produced by a renderer snapshot. More...
#include "donner/svg/renderer/RendererInterface.h"
Public Member Functions | |
| bool | empty () const |
| Returns true if this bitmap has no pixel data. | |
Public Attributes | |
| Vector2i | dimensions = Vector2i::Zero() |
| Pixel dimensions of the bitmap in device pixels. | |
| std::vector< uint8_t > | pixels |
| Raw RGBA8 pixel data; row starts are separated by rowBytes. | |
| std::size_t | rowBytes = 0 |
| Bytes between rows; allows alignment/padding differences between renderers. | |
| AlphaType | alphaType = AlphaType::Premultiplied |
| Alpha channel interpretation. Backends produce premultiplied data by default. | |
CPU-readable bitmap produced by a renderer snapshot.