vdr-plugin-skindesigner/libcore/imagemagickwrapper.h

23 lines
542 B
C++

#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