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: 2009 Boudewijn Rempt <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _PSD_CONVERTER_H_
#define _PSD_CONVERTER_H_
#include <stdio.h>
#include <QObject>
#include "kis_types.h"
#include <KisImportExportErrorCode.h>
// max number of pixels in one dimension of psd file
extern const int MAX_PSD_SIZE;
class KisDocument;
class PSDSaver : public QObject {
Q_OBJECT
public:
PSDSaver(KisDocument *doc);
~PSDSaver() override;
public:
KisImportExportErrorCode buildFile(QIODevice &io);
KisImageSP image();
public Q_SLOTS:
virtual void cancel();
private:
KisImageSP m_image;
KisDocument *m_doc;
bool m_stop;
};
#endif