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/StampWidget/DefsStampWidget.h
Normal file
30
Resources/StampWidget/DefsStampWidget.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// /*
|
||||
// * File: Common.h
|
||||
// * Author: Saleem Edah-Tally - nmset@yandex.com
|
||||
// * License : CeCILL-C
|
||||
// * Copyright Saleem Edah-Tally - © 2025
|
||||
// *
|
||||
// * Created on 27 06 2025, 20:34
|
||||
// */
|
||||
|
||||
#ifndef COMMON_H
|
||||
#define COMMON_H
|
||||
|
||||
#include <wx/wx.h>
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
enum {CENTRE = 0, NORTH, SOUTH, EAST, WEST,
|
||||
NORTH_EAST, NORTH_WEST, SOUTH_EAST, SOUTH_WEST};
|
||||
|
||||
struct StampDescriptor
|
||||
{
|
||||
wxImage image;
|
||||
wxString text;
|
||||
wxFont font = wxNullFont;
|
||||
wxColour foregroundColour = wxNullColour;
|
||||
wxColour backgroundColour = wxNullColour;
|
||||
int rotationAngle = 45;
|
||||
int location = 0;
|
||||
bool transparent = true;
|
||||
};
|
||||
#endif // COMMON_H
|
||||
Reference in New Issue
Block a user