25 #ifndef DIGIKAM_SHEAR_FILTER_H
26 #define DIGIKAM_SHEAR_FILTER_H
48 explicit ShearFilter(QObject*
const parent =
nullptr);
49 explicit ShearFilter(
DImg*
const orgImage, QObject*
const parent =
nullptr,
float hAngle=0.0,
float vAngle=0.0,
50 bool antialiasing=
true,
const QColor& backgroundColor=Qt::black,
int orgW=0,
int orgH=0);
53 QSize getNewSize()
const;
57 return QLatin1String(
"digikam:ShearFilter");
60 static QString DisplayableName();
74 return FilterIdentifier();
78 void readParameters(
const FilterAction& action)
override;
82 void filterImage()
override;
84 inline int setPosition (
int Width,
int X,
int Y)
89 inline bool isInside (
int Width,
int Height,
int X,
int Y)
91 bool bIsWOk = ((
X < 0) ?
false : (
X >=
Width ) ? false :
true);
92 bool bIsHOk = ((Y < 0) ?
false : (Y >=
Height) ? false :
true);
94 return (bIsWOk && bIsHOk);
Definition: dimgthreadedfilter.h:41
Definition: filteraction.h:43
Definition: shearfilter.h:43
QString filterIdentifier() const override
Definition: shearfilter.h:72
static QString FilterIdentifier()
Definition: shearfilter.h:55
static int CurrentVersion()
Definition: shearfilter.h:67
static QList< int > SupportedVersions()
Definition: shearfilter.h:62
@ Width
Definition: coredbfields.h:87
@ Height
Definition: coredbfields.h:88
Definition: datefolderview.cpp:43