digiKam
pgfutils.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-05-29
7  * Description : static helper methods for PGF image format.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_PGF_UTILS_H
25 #define DIGIKAM_PGF_UTILS_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QImage>
31 #include <QByteArray>
32 
33 // Local includes
34 
35 #include "digikam_config.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 namespace PGFUtils
42 {
43 
48 DIGIKAM_EXPORT bool readPGFImageData(const QByteArray& data,
49  QImage& img,
50  bool verbose=false);
51 
64 DIGIKAM_EXPORT bool writePGFImageData(const QImage& image,
65  QByteArray& data,
66  int quality,
67  bool verbose=false);
68 
74 DIGIKAM_EXPORT bool writePGFImageFile(const QImage& image,
75  const QString& filePath,
76  int quality,
77  bool verbose=false);
78 
82 DIGIKAM_EXPORT bool loadPGFScaled(QImage& img,
83  const QString& path,
84  int maximumSize);
85 
89 DIGIKAM_EXPORT QString libPGFVersion();
90 
91 } // namespace PGFUtils
92 
93 } // namespace Digikam
94 
95 #endif // DIGIKAM_PGF_UTILS_H
bool readPGFImageData(const QByteArray &data, QImage &img, bool verbose)
Definition: pgfutils.cpp:82
bool writePGFImageData(const QImage &image, QByteArray &data, int quality, bool verbose)
Definition: pgfutils.cpp:223
bool loadPGFScaled(QImage &img, const QString &path, int maximumSize)
Definition: pgfutils.cpp:417
bool writePGFImageFile(const QImage &image, const QString &filePath, int quality, bool verbose)
Definition: pgfutils.cpp:163
QString libPGFVersion()
Definition: pgfutils.cpp:552
Definition: datefolderview.cpp:43