mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
23 lines
542 B
C++
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
|