forked from MegaV0lt/vdr-plugin-skinflatplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageloader.h
36 lines (29 loc) · 942 Bytes
/
imageloader.h
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
/*
* Skin flatPlus: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#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);
cImage* LoadFile(const char *cFile, int width, int height);
bool FileExits(const std::string &name);
bool SearchRecordingPoster(cString RecPath, cString &found); // NOLINT
private:
// int epgImageWidthLarge, epgImageHeightLarge; // Unused?
// int epgImageWidth, epgImageHeight;
cString m_LogoExtension{"png"};
void ToLowerCase(std::string &str); // NOLINT
};