1
/* ============================================================
2
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
3
* Gilles Caulier <caulier dot gilles at kdemail dot net>
5
* Description : A 16 bits/color/pixel PPM IO file for
8
* Copyright 2005 by Renchi Raju, Gilles Caulier
9
* Copyright 2006 by Gilles Caulier
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)
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.
22
* ============================================================ */
29
#include "dimgloader.h"
30
#include "digikam_export.h"
36
class DIGIKAM_EXPORT PPMLoader : public DImgLoader
40
PPMLoader(DImg* image);
42
bool load(const QString& filePath, DImgLoaderObserver *observer);
43
bool save(const QString& filePath, DImgLoaderObserver *observer);
45
virtual bool hasAlpha() const { return false; };
46
virtual bool sixteenBit() const { return true; };
47
virtual bool isReadOnly() const { return true; };
55
} // NameSpace Digikam
57
#endif /* PPMLOADER_H */