Add PDF writer.
This commit is contained in:
parent
c05b7b6315
commit
9c116b1efd
72 changed files with 1819 additions and 114 deletions
22
src/image/PngWriter.h
Normal file
22
src/image/PngWriter.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class Image;
|
||||
|
||||
class PngWriter
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr<PngWriter> Create();
|
||||
|
||||
void SetPath(const std::string& path);
|
||||
|
||||
void Write(const std::unique_ptr<Image>& image) const;
|
||||
|
||||
private:
|
||||
|
||||
std::string mPath;
|
||||
};
|
||||
|
||||
using PngWriterPtr = std::unique_ptr<PngWriter>;
|
Loading…
Add table
Add a link
Reference in a new issue