KQuickImageEditor

rotatecommand.cpp
1/*
2 * SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#include "rotatecommand.h"
8
10 : m_tranform(tranform)
11{
12}
13
15{
16 return image.transformed(m_tranform.rotate(180));
17}
18
20{
21 return image.transformed(m_tranform);
22}
QImage redo(QImage image) override
Applies the change to the document.
RotateCommand(const QTransform &m_tranform)
Contructor.
QImage undo(QImage image) override
Revert a change to the document.
QImage transformed(const QTransform &matrix, Qt::TransformationMode mode) const const
QTransform & rotate(qreal a, Qt::Axis axis)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:59:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.