vdr-plugin-skindesigner/libcore/imagemagickwrapper.h

23 lines
542 B
C
Raw Normal View History

2014-09-27 09:25:14 +02:00
#ifndef __NOPACITY_IMAGEMAGICKWRAPPER_H
#define __NOPACITY_IMAGEMAGICKWRAPPER_H
#define X_DISPLAY_MISSING
2014-10-28 19:38:11 +01:00
#include <cairo.h>
2014-09-27 09:25:14 +02:00
#include <vdr/osd.h>
class cImageMagickWrapper {
private:
public:
cImageMagickWrapper();
~cImageMagickWrapper();
protected:
2014-10-28 19:38:11 +01:00
cairo_surface_t *image = NULL;
2014-09-27 09:25:14 +02:00
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