Go to the documentation of this file.
15 ImageMaskEditor(
int width = 64,
int height = 64, QWidget* parent =
nullptr);
20 bool saveMaskImage(
const QString& fileName,
const char* fileFormat);
45 void resizeImage(QSize size,
bool doNotShrink =
false);
53 void arrowDrawn(
const QPoint& arrowStart,
const QPoint& arrowEnd);
62 void drawOnMask(
const QPoint& endPoint);
63 void resizeImage(QImage* image,
const QSize& newSize,
const QColor& fillcolor);
65 bool _drawing {
false};
66 bool _maskModified {
false};
67 bool _drawPenCircle {
false};
72 QColor _maskTransparentColor {Qt::black};
76 QImage _backgroundImage;
ImageMaskEditor(QSize size, QWidget *parent=nullptr)
void mouseReleaseEvent(QMouseEvent *event) override
const QImage & backgroundImage() const
bool openMaskImage(const QString &fileName)
const QColor & maskColor() const
void setPenWidth(int newWidth)
void setBackgroundImage(const QImage &i)
bool saveBackgroundImage(const QString &fileName, const char *fileFormat)
void maskUpdateFinished()
bool saveMaskImage(const QString &fileName, const char *fileFormat)
bool openBackgroundImage(const QString &fileName)
void setMaskImage(const QImage &i)
void setImageSize(QSize size, bool doNotShrink=false)
const QColor & transparentColor() const
void mouseMoveEvent(QMouseEvent *event) override
void resizeImage(QSize size, bool doNotShrink=false)
void setTransparentColor(const QColor &newColor)
QSize sizeHint() const override
void paintEvent(QPaintEvent *event) override
void setMaskColor(const QColor &newColor)
void setPenCircleVisible(bool b=true)
void setMaskAlpha(int newAlpha)
void arrowDrawn(const QPoint &arrowStart, const QPoint &arrowEnd)
void mousePressEvent(QMouseEvent *event) override