blob: b7ffb2437d02f78ab7bacceb44c6440e78934856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#define X_DISPLAY_MISSING
#include <vdr/osd.h>
#include <vdr/skins.h>
#include <Magick++.h>
#include "imagemagickwrapper.h"
#include "flat.h"
using namespace Magick;
class cImageLoader : public cImageMagickWrapper {
public:
cImageLoader();
~cImageLoader();
cImage* LoadLogo(const char *logo, int width, int height);
cImage* LoadIcon(const char *cIcon, int width, int height, bool preserveAspect = true);
//cImage GetImage();
//cImage GetImage(int width, int height, bool preserveAspect = true);
//bool LoadIcon(const char *cIcon, int size = -1);
//bool LoadIcon2(const char *cIcon);
private:
int epgImageWidthLarge, epgImageHeightLarge;
int epgImageWidth, epgImageHeight;
cString logoExtension;
void toLowerCase(std::string &str);
};
|