summaryrefslogtreecommitdiff
path: root/libcore/imageloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcore/imageloader.c')
-rw-r--r--libcore/imageloader.c12
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) {