Files
s7/Resources/InsaneWidget/PixelToImageWriter.h

36 lines
885 B
C
Raw Permalink Normal View History

2025-06-28 17:40:42 +02:00
// /*
// * File: PixelToImageWriter.h
// * Author: Saleem Edah-Tally - nmset@yandex.com
// * License : CeCILL-C
// * Copyright Saleem Edah-Tally - © 2025
// *
// * Created on 27 06 2025, 20:28
// */
#ifndef PIXELTOIMAGEWRITER_H
#define PIXELTOIMAGEWRITER_H
#include "DefsInsaneWidget.h"
2025-06-28 17:40:42 +02:00
#include <string>
#include <vector>
2025-06-28 17:40:42 +02:00
#include <wx/wx.h>
struct StampDescriptor;
2025-06-28 17:40:42 +02:00
/**
* Create an image file from a raw scanned file.\n
* Optionally,\n
* - use an wxImage object from the application\n
* - blend a stamp image on the converted image.\n
2025-06-28 17:40:42 +02:00
*/
class PixelToImageWriter
{
DECLARE_DYNAMIC_CLASS( PixelToImageWriter )
2025-06-28 17:40:42 +02:00
public:
static bool Convert(const std::string& pixelFilePath,
int imageWidth, int imageHeight, std::vector<StampDescriptor*> * descriptors,
int outputFormat = PNG, wxImage * image = nullptr);
2025-06-28 17:40:42 +02:00
};
#endif // PIXELTOIMAGEWRITER_H