wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
CircuitExporter.h File Reference

CircuitExporter: render a Scene to PDF or PNG image. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CircuitExporter
 Pure render functions for exporting a circuit scene to image formats.

Functions

QImage CircuitExporter::renderScaledImage (Scene *scene, const QRectF &paddedRect)
 Renders scene into a transparent-filled QImage bounded by kMaxImageDimension.
void CircuitExporter::renderToImage (Scene *scene, const QString &filePath)
 Renders scene to a PNG image file at filePath.
void CircuitExporter::renderToPdf (Scene *scene, const QString &filePath)
 Renders scene to a PDF file at filePath.

Variables

constexpr double CircuitExporter::kMaxImageDimension = 4096

Detailed Description

CircuitExporter: render a Scene to PDF or PNG image.

Definition in file CircuitExporter.h.