summaryrefslogtreecommitdiff
path: root/libcore/imagemagickwrapper.h
blob: b0c19e8994a74e60ef1e157d5bb0269de2e68364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __NOPACITY_IMAGEMAGICKWRAPPER_H
#define __NOPACITY_IMAGEMAGICKWRAPPER_H

#define X_DISPLAY_MISSING

#include <cairo.h>
#include <vdr/osd.h>


class cImageMagickWrapper {
private:
public:
    cImageMagickWrapper();
    ~cImageMagickWrapper();
protected:
    cairo_surface_t *image = NULL;
    cImage *CreateImage(int width, int height, bool preserveAspect = true);
    bool LoadImage(std::string FileName, std::string Path, std::string Extension);
    bool LoadImage(const char *fullpath);
};

#endif //__NOPACITY_IMAGEMAGICKWRAPPER_H