diff options
Diffstat (limited to 'glcdgraphics/extformats.h')
-rw-r--r-- | glcdgraphics/extformats.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/glcdgraphics/extformats.h b/glcdgraphics/extformats.h new file mode 100644 index 0000000..23f6ea2 --- /dev/null +++ b/glcdgraphics/extformats.h @@ -0,0 +1,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-2012 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 |