blob: bc7e8359c686d0ca0dfae7508fd0f13415f5a394 (
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
38
39
40
|
/*
* GraphLCD graphics library
*
* imagefile.h - base class for file loading and saving
*
* This file is released under the GNU General Public License. Refer
* to the COPYING file distributed with this package.
*
* (c) 2006 Andreas Regel <andreas.regel AT powarman.de>
*/
#ifndef _GLCDGRAPHICS_IMAGEFILE_H_
#define _GLCDGRAPHICS_IMAGEFILE_H_
#include <string>
namespace GLCD
{
class cImage;
class cImageFile
{
public:
cImageFile();
virtual ~cImageFile();
virtual bool Load(cImage & image, const std::string & fileName);
virtual bool Save(cImage & image, const std::string & fileName);
virtual bool SupportsScaling(void) { return false; }
virtual bool LoadScaled(cImage & image, const std::string & fileName, uint16_t & scalew, uint16_t & scaleh) {
scalew = 0;
scaleh = 0;
return Load(image, fileName);
}
};
} // end of namespace
#endif
|