KQuickImageEditor

rotatecommand.cpp
1 /*
2  * SPDX-FileCopyrightText: (C) 2020 Carl Schwan <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  */
6 
7 #include "rotatecommand.h"
8 #include <QDebug>
9 
11  : m_tranform(tranform)
12 {
13 }
14 
16 {
17  return image.transformed(m_tranform.rotate(180));
18 }
19 
21 {
22  return image.transformed(m_tranform);
23 }
virtual QImage redo(QImage image) override
Applies the change to the document.
QTransform & rotate(qreal angle, Qt::Axis axis)
virtual QImage undo(QImage image) override
Revert a change to the document.
QImage transformed(const QMatrix &matrix, Qt::TransformationMode mode) const const
RotateCommand(const QTransform &m_tranform)
Contructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 18 2021 23:08:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.