diff options
author | louis <louis.braun@gmx.de> | 2013-09-29 12:03:45 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-29 12:03:45 +0200 |
commit | acce422dcfe6bb57818f062b3a6e2db99b4cb2d3 (patch) | |
tree | 33d129161784818b95890a656c7a802f1118bfed /imageloader.h | |
parent | 9a0778bbdf309018a635229bd0523b3435388978 (diff) | |
download | skin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.gz skin-nopacity-acce422dcfe6bb57818f062b3a6e2db99b4cb2d3.tar.bz2 |
Added Cache for images and fonts
Diffstat (limited to 'imageloader.h')
-rw-r--r-- | imageloader.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/imageloader.h b/imageloader.h index 4983539..a0fa864 100644 --- a/imageloader.h +++ b/imageloader.h @@ -9,28 +9,19 @@ using namespace Magick; -class cImageLoader { +class cImageLoader : public cImageMagickWrapper { public: cImageLoader(); ~cImageLoader(); cImage GetImage(); bool LoadLogo(const char *logo, int width, int height); - bool LoadIcon(const char *cIcon, int size); - bool LoadIcon(const char *cIcon, int width, int height, bool preserveAspect = true); bool LoadEPGImage(int eventID); bool LoadAdditionalEPGImage(cString name); bool LoadRecordingImage(cString Path); bool LoadAdditionalRecordingImage(cString path, cString name); bool LoadPoster(const char *poster, int width, int height); - void DrawBackground(tColor back, tColor blend, int width, int height, bool mirror = false); - void DrawBackground2(tColor back, tColor blend, int width, int height); bool SearchRecordingPoster(cString recPath, cString &found); private: - Image buffer; - Color Argb2Color(tColor col); - void toLowerCase(std::string &str); - bool LoadImage(cString FileName, cString Path, cString Extension); - bool LoadImage(const char *fullpath); bool FirstImageInFolder(cString Path, cString Extension, cString *recImage); }; |