RasterProcessTool/LAMPMainWidget/include/utils/imgwriter.h

25 lines
498 B
C
Raw Normal View History

2025-02-07 09:16:22 +00:00
#pragma once
#include <QString>
namespace LAMPMainWidget
{
class ImgWriter
{
public:
ImgWriter(QString file, const QSize& size);
ImgWriter(const ImgWriter& other) = delete;
ImgWriter(ImgWriter&& other) = delete;
ImgWriter operator =(const ImgWriter& other) = delete;
ImgWriter operator =(ImgWriter&& other) = delete;
virtual ~ImgWriter() = default;
public:
bool write(const QPoint& pos, const QByteArray& data) const;
protected:
QString mFile;
};
}