blob: b340f9a06f6ebe55aa22ef623c0054b8a9ee395f (
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
|
#pragma once
#define X_DISPLAY_MISSING
#include <vdr/osd.h>
#include <vdr/skins.h>
#include <Magick++.h>
#include "imagemagickwrapper.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* LoadFile(const char *cFile, int width, int height, bool preserveAspect = true);
bool FileExits(const std::string& name);
bool SearchRecordingPoster(cString recPath, cString &found);
private:
int epgImageWidthLarge, epgImageHeightLarge;
int epgImageWidth, epgImageHeight;
cString logoExtension;
void toLowerCase(std::string &str);
};
|