summaryrefslogtreecommitdiff
path: root/glcdgraphics/extformats.h
blob: b910c3cf94395f8c72df88b6726a937d9d7380e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * GraphLCD graphics library
 *
 * extformats.h  -  loading and saving of external formats (via ImageMagick)
 *
 * based on bitmap.[ch] from text2skin: http://projects.vdr-developer.org/projects/show/plg-text2skin
 *
 * This file is released under the GNU General Public License. Refer
 * to the COPYING file distributed with this package.
 *
 * (c) 2011      Wolfgang Astleitner <mrwastl AT users sourceforge net>
 */

#ifndef _GLCDGRAPHICS_EXTFORMATS_H_
#define _GLCDGRAPHICS_EXTFORMATS_H_

#include "imagefile.h"

namespace GLCD
{

class cImage;

class cExtFormatFile : public cImageFile
{
public:
    cExtFormatFile();
    virtual ~cExtFormatFile();
    virtual bool Load(cImage & image, const std::string & fileName);
    virtual bool Save(cImage & image, const std::string & fileName);

    virtual bool LoadScaled(cImage & image, const std::string & fileName, uint16_t & scalew, uint16_t & scaleh);
};

} // end of namespace

#endif