2013-01-17 13:16:44 +01:00
|
|
|
#ifndef _TVGUIDE_IMAGELOADER_H
|
|
|
|
#define _TVGUIDE_IMAGELOADER_H
|
|
|
|
|
|
|
|
#define X_DISPLAY_MISSING
|
|
|
|
|
|
|
|
#include <vdr/osd.h>
|
|
|
|
#include <vdr/skins.h>
|
|
|
|
#include <Magick++.h>
|
|
|
|
|
|
|
|
using namespace Magick;
|
|
|
|
|
|
|
|
class cImageLoader {
|
|
|
|
public:
|
2013-01-17 14:33:53 +01:00
|
|
|
cImageLoader();
|
|
|
|
~cImageLoader();
|
|
|
|
cImage GetImage();
|
|
|
|
bool LoadLogo(const char *logo, 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);
|
2013-01-17 13:16:44 +01:00
|
|
|
private:
|
2013-01-17 14:33:53 +01:00
|
|
|
Image buffer;
|
|
|
|
Color Argb2Color(tColor col);
|
|
|
|
void toLowerCase(std::string &str);
|
|
|
|
bool LoadImage(cString FileName, cString Path, cString Extension);
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_TVGUIDE_IMAGELOADER_H
|