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.
Loading...
Searching...
No Matches
donner::svg::RendererBitmap Struct Reference

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.

Detailed Description

CPU-readable bitmap produced by a renderer snapshot.


The documentation for this struct was generated from the following file: