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>
|
2013-12-21 11:25:03 +01:00
|
|
|
#include "imagemagickwrapper.h"
|
2013-01-17 13:16:44 +01:00
|
|
|
|
|
|
|
using namespace Magick;
|
|
|
|
|
2013-12-21 11:25:03 +01:00
|
|
|
class cImageLoader : public cImageMagickWrapper {
|
2013-01-17 13:16:44 +01:00
|
|
|
public:
|
2013-01-17 14:33:53 +01:00
|
|
|
cImageLoader();
|
|
|
|
~cImageLoader();
|
|
|
|
cImage GetImage();
|
2013-12-21 11:25:03 +01:00
|
|
|
bool LoadLogo(const cChannel *channel, int width, int height);
|
|
|
|
bool LoadEPGImage(int eventID, int width, int height);
|
2013-06-03 09:52:54 +02:00
|
|
|
bool LoadAdditionalEPGImage(cString name);
|
2013-08-25 13:57:10 +02:00
|
|
|
bool LoadPoster(const char *poster, int width, int height);
|
2013-07-09 00:17:42 +02:00
|
|
|
bool LoadIcon(const char *cIcon, int size);
|
2013-12-21 11:25:03 +01:00
|
|
|
bool LoadOsdElement(cString name, int width, int height);
|
2013-01-17 16:19:37 +01:00
|
|
|
bool DrawBackground(tColor back, tColor blend, int width, int height);
|
2013-12-22 10:39:46 +01:00
|
|
|
private:
|
|
|
|
void CreateGradient(tColor back, tColor blend, int width, int height, double wfactor, double hfactor);
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_TVGUIDE_IMAGELOADER_H
|