Geometrize  1.0
An application for geometrizing images into geometric primitives
Namespaces | Functions
imageexporter.h File Reference
#include <cstdint>
#include <string>
#include <vector>
#include "geometrize/bitmap/rgba.h"

Go to the source code of this file.

Namespaces

 geometrize
 
 geometrize::exporter
 

Functions

bool geometrize::exporter::exportBitmap (const geometrize::Bitmap &bitmap, const std::string &filePath)
 exportBitmap Exports the Geometrize bitmap data to an image format that Qt supports (depending on the file extension). More...
 
bool geometrize::exporter::exportImage (const QImage &image, const std::string &filePath)
 exportImage Exports the image data to an image format that Qt supports (depending on the file extension). More...
 
bool geometrize::exporter::exportImages (const std::vector< QImage > &images, const std::string &targetDir, const std::string &baseFilename, const std::string &fileExtension)
 exportImages Exports the image data to an image format that Qt supports (depending on the file extension). More...
 
QImage geometrize::exporter::renderSvgShapeDataToImage (const std::vector< geometrize::ShapeResult > &shapes, const std::uint32_t inputWidth, const std::uint32_t inputHeight, const std::uint32_t outputWidth, const std::uint32_t outputHeight)
 renderSvgShapeDataToImage Renders the given shape data to an image via an SVG. More...
 
bool geometrize::exporter::exportRasterizedSvg (const std::vector< geometrize::ShapeResult > &shapes, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::string &filePath)
 exportRasterizedSvg Exports the shape data as an image by rasterizing an SVG rendered from the shape data. More...
 
bool geometrize::exporter::exportRasterizedSvgs (const std::vector< geometrize::ShapeResult > &shapes, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::string &targetDir, const std::string &baseFilename, const std::string &fileExtension)
 exportRasterizedSvgs Exports the shape data to images by rasterizing SVGs rendered from the shape data. Exports one image for each shape i.e. an image with one shape, two shapes, three shapes. More...