diff options
author | root <root@maschine.(none)> | 2012-11-27 02:11:15 +0100 |
---|---|---|
committer | root <root@maschine.(none)> | 2012-11-27 02:11:15 +0100 |
commit | 4b51af06327270caa4f38c31f28cdfbc1baabc4e (patch) | |
tree | 2556e7eb912d5f1352866924cfe3e6f3d2dc13bb /imageloader.h | |
download | skin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.gz skin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.bz2 |
Initial push nOpacity 0.0.3
Diffstat (limited to 'imageloader.h')
-rw-r--r-- | imageloader.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/imageloader.h b/imageloader.h new file mode 100644 index 0000000..cade4d0 --- /dev/null +++ b/imageloader.h @@ -0,0 +1,30 @@ +#ifndef __NOPACITY_IMAGELOADER_H +#define __NOPACITY_IMAGELOADER_H + +#define X_DISPLAY_MISSING + +#include <vdr/osd.h> +#include <vdr/skins.h> +#include <Magick++.h> + +using namespace Magick; + +class cImageLoader { +public: + cImageLoader(); + ~cImageLoader(); + cImage GetImage(); + bool LoadLogo(const char *logo, int width, int height); + bool LoadIcon(const char *cIcon, int size); + bool LoadIcon(const char *cIcon, int width, int height); + bool LoadEPGImage(int eventID); + void DrawBackground(tColor back, tColor blend, int width, int height); + void DrawBackground2(tColor back, tColor blend, int width, int height); +private: + Image buffer; + Color Argb2Color(tColor col); + void toLowerCase(std::string &str); + bool LoadImage(cString FileName, cString Path, cString Extension); +}; + +#endif //__NOPACITY_IMAGELOADER_H |