Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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. Defaults to premultiplied; renderer snapshots (RendererInterface::takeSnapshot) publish straight alpha.

Detailed Description

CPU-readable bitmap produced by a renderer snapshot.

Examples
svg_animation.cc, svg_quickstart.cc, and svg_viewer.cc.

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