diff options
author | Manuel Reimer <manuel.reimer@gmx.de> | 2014-10-28 16:54:37 +0100 |
---|---|---|
committer | Manuel Reimer <manuel.reimer@gmx.de> | 2014-10-28 16:54:37 +0100 |
commit | 943c899288181988013dca3558a2382937f36f3f (patch) | |
tree | 25abeed380461567b36ab7841b3835245f82f4ac /libcore/imageloader.c | |
parent | abd8fd8db042ae860bb5346ce886ee961a847ae6 (diff) | |
download | vdr-plugin-skindesigner-943c899288181988013dca3558a2382937f36f3f.tar.gz vdr-plugin-skindesigner-943c899288181988013dca3558a2382937f36f3f.tar.bz2 |
First cleanup of image loading code
Diffstat (limited to 'libcore/imageloader.c')
-rw-r--r-- | libcore/imageloader.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libcore/imageloader.c b/libcore/imageloader.c index 61e8076..07b324e 100644 --- a/libcore/imageloader.c +++ b/libcore/imageloader.c @@ -14,16 +14,12 @@ cImageLoader::cImageLoader() : cImageMagickWrapper() { cImageLoader::~cImageLoader() { } -cImage cImageLoader::GetImage() { - return CreateImageCopy(); +cImage *cImageLoader::GetImage(int width, int height) { + return CreateImage(width, height, false); } -bool cImageLoader::LoadImage(const char *path, int width, int height) { - if (cImageMagickWrapper::LoadImage(path)) { - buffer.sample(Geometry(width, height)); - return true; - } - return false; +bool cImageLoader::LoadImage(const char *path) { + return cImageMagickWrapper::LoadImage(path); } void cImageLoader::DeterminateChannelLogoSize(int &width, int &height) { |