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);
157 int brightness()
const;
158 int contrast()
const;
159 int saturation()
const;
162 int sharpness()
const;
163 int threshold()
const;
164 int gaussianBlur()
const;
167 void setArea(
const QRectF &newArea);
170 bool changesApplied()
const;
173 void pathChanged(
const QUrl &url);
175 void editedChanged();
176 void brightnessChanged();
177 void contrastChanged();
178 void saturationChanged();
181 void sharpnessChanged();
183 void thresholdChanged();
184 void changesAppliedChanged();
185 void gaussianBlurChanged();
193 int m_brightness = 0;
195 int m_saturation = 0;
200 int m_gaussianBlur = 0;
204 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 May 2 2025 11:56:08 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.