Place one or multiple stamps on scanned pages in defined locations. A stamp is understood here as - a transparent text in a transparent frame with no borders - an opaque text on an opaque background with no borders. Stamp parameters: - text - font - foreground colour - background colour - angle of rotation - transparency. Locations: - centre - cardinal directions - inter-cardinal directions.
31 lines
624 B
C++
31 lines
624 B
C++
// /*
|
|
// * File: DefsInsaneWidget.h
|
|
// * Author: Saleem Edah-Tally - nmset@yandex.com
|
|
// * License : CeCILL-C
|
|
// * Copyright Saleem Edah-Tally - © 2025
|
|
// *
|
|
// * Created on 08 07 2025, 20:44
|
|
// */
|
|
|
|
#ifndef DEFSINSANEWIDGET_H
|
|
#define DEFSINSANEWIDGET_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
enum {PDF, PNG, JPEG, TIFF, PNM};
|
|
typedef std::map <int, std::string> ExtensionsMap;
|
|
|
|
static ExtensionsMap Extensions;
|
|
|
|
static void UpdateExtensionsMap()
|
|
{
|
|
Extensions[PDF] = "pdf";
|
|
Extensions[PNG] = "png";
|
|
Extensions[JPEG] = "jpeg";
|
|
Extensions[TIFF] = "tiff";
|
|
Extensions[PNM] = "pnm";
|
|
}
|
|
|
|
#endif // DEFSINSANEWIDGET_H
|