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)
54 Q_PROPERTY(
QRectF area READ area WRITE setArea NOTIFY areaChanged RESET resetArea)
83 void setPath(
const QUrl &path);
106 (
int x,
int y,
int width,
int height);
145 int brightness()
const;
146 int contrast()
const;
147 int saturation()
const;
151 void setArea(
const QRectF &newArea);
154 bool changesApplied()
const;
157 void pathChanged(
const QUrl &url);
159 void editedChanged();
160 void brightnessChanged();
161 void contrastChanged();
162 void saturationChanged();
165 void changesAppliedChanged();
173 int m_brightness = 0;
175 int m_saturation = 0;
180 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 11 2025 11:57:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.