Add a 'Stamp' widget.
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.
This commit is contained in:
30
Resources/InsaneWidget/DefsInsaneWidget.h
Normal file
30
Resources/InsaneWidget/DefsInsaneWidget.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// /*
|
||||
// * 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
|
||||
Reference in New Issue
Block a user