mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			750 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			750 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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:
 | |
|     cImageLoader();
 | |
|     ~cImageLoader();
 | |
|     cImage GetImage();
 | |
|     bool LoadLogo(const char *logo, int width, int height);
 | |
|     bool LoadEPGImage(int eventID);
 | |
|     bool LoadAdditionalEPGImage(cString name);
 | |
|     bool LoadIcon(const char *cIcon, int size);
 | |
|     bool DrawBackground(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 //_TVGUIDE_IMAGELOADER_H
 |