From acce422dcfe6bb57818f062b3a6e2db99b4cb2d3 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 29 Sep 2013 12:03:45 +0200 Subject: Added Cache for images and fonts --- imageloader.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'imageloader.h') 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); }; -- cgit v1.2.3