Geometrize  1.0
An application for geometrizing images into geometric primitives
gifexporter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <functional>
5 #include <string>
6 #include <vector>
7 
8 namespace geometrize
9 {
10 class Bitmap;
11 
12 struct ShapeResult;
13 }
14 
15 namespace geometrize
16 {
17 
18 namespace exporter
19 {
20 
31 bool exportGIF(
32  const std::vector<geometrize::ShapeResult>& data,
33  std::uint32_t inputWidth,
34  std::uint32_t inputHeight,
35  std::uint32_t outputWidth,
36  std::uint32_t outputHeight,
37  const std::function<bool(std::size_t)>& frameSkipPredicate,
38  const std::string& filePath);
39 
40 }
41 
42 }
imageloader.h
gifexporter.h
imageexporter.h
geometrize::exporter::exportGIF
bool exportGIF(const std::vector< geometrize::ShapeResult > &data, std::uint32_t inputWidth, std::uint32_t inputHeight, std::uint32_t outputWidth, std::uint32_t outputHeight, const std::function< bool(std::size_t)> &frameSkipPredicate, const std::string &filePath)
exportGIF Exports shape data to a GIF image.
Definition: gifexporter.cpp:80
geometrize::exporter::renderSvgShapeDataToImage
QImage 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.
Definition: imageexporter.cpp:46
geometrize
Definition: commandlineparser.cpp:73