Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2002 Patrick Julien <[email protected]>
* SPDX-FileCopyrightText: 2007 Sven Langkamp <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KIS_IMAGE_RESIZE_COMMAND_H_
#define KIS_IMAGE_RESIZE_COMMAND_H_
#include "kritaimage_export.h"
#include "kis_types.h"
#include <kundo2command.h>
#include <QSize>
class KRITAIMAGE_EXPORT KisImageResizeCommand : public KUndo2Command
{
public:
KisImageResizeCommand(KisImageWSP image, const QSize& newRect, KUndo2Command *parent = 0);
void redo() override;
void undo() override;
private:
QSize m_sizeBefore;
QSize m_sizeAfter;
KisImageWSP m_image;
};
#endif