MauiKit Image Tools
13#include <qqmlregistration.h>
15#include "commands/command.h"
47 Q_PROPERTY(
bool edited READ edited NOTIFY editedChanged)
48 Q_PROPERTY(
bool changesApplied READ changesApplied NOTIFY changesAppliedChanged)
49 Q_PROPERTY(
int brightness READ brightness NOTIFY brightnessChanged FINAL)
50 Q_PROPERTY(
int contrast READ contrast NOTIFY contrastChanged FINAL)
51 Q_PROPERTY(
int saturation READ saturation NOTIFY saturationChanged FINAL)
52 Q_PROPERTY(
int hue READ hue NOTIFY hueChanged FINAL)
53 Q_PROPERTY(
int gamma READ gamma NOTIFY gammaChanged FINAL)
54 Q_PROPERTY(
int sharpness READ sharpness NOTIFY sharpnessChanged FINAL)
55 Q_PROPERTY(
int threshold READ threshold NOTIFY thresholdChanged FINAL)
56 Q_PROPERTY(
int gaussianBlur READ gaussianBlur NOTIFY gaussianBlurChanged FINAL)
57 Q_PROPERTY(
QRectF area READ area WRITE setArea NOTIFY areaChanged RESET resetArea)
86 void setPath(
const QUrl &path);
109 (
int x,
int y,
int width,
int height);
155 int brightness()
const;
156 int contrast()
const;
157 int saturation()
const;
160 int sharpness()
const;
161 int threshold()
const;
162 int gaussianBlur()
const;
165 void setArea(
const QRectF &newArea);
168 bool changesApplied()
const;
171 void pathChanged(
const QUrl &url);
173 void editedChanged();
174 void brightnessChanged();
175 void contrastChanged();
176 void saturationChanged();
179 void sharpnessChanged();
181 void thresholdChanged();
182 void changesAppliedChanged();
183 void gaussianBlurChanged();
191 int m_brightness = 0;
193 int m_saturation = 0;
198 int m_gaussianBlur = 0;
202 bool m_changesApplied;
Q_INVOKABLE void undo()
Undo the last edit on the images.
Q_INVOKABLE void rotate(int angle)
Rotate the image.
Q_INVOKABLE bool saveAs(const QUrl &location)
Save current edited image as a new image.
Q_INVOKABLE bool save()
Save current edited image in place.
Q_INVOKABLE void mirror(bool horizontal, bool vertical)
Mirror the image.
Q_INVOKABLE void crop(int x, int y, int width, int height)
Crop the image.
Q_INVOKABLE void cancel()
Cancel all the edit.
void setEdited(bool value)
Change the edited value.
Q_INVOKABLE void resize(int width, int height)
Resize the image.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:10:54 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.