diff options
Diffstat (limited to 'imagemagickwrapper.h')
-rw-r--r-- | imagemagickwrapper.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/imagemagickwrapper.h b/imagemagickwrapper.h new file mode 100644 index 00000000..9750a888 --- /dev/null +++ b/imagemagickwrapper.h @@ -0,0 +1,23 @@ +#ifndef __NOPACITY_IMAGEMAGICKWRAPPER_H +#define __NOPACITY_IMAGEMAGICKWRAPPER_H + +#define X_DISPLAY_MISSING + +#include <Magick++.h> +#include <vdr/osd.h> + +using namespace Magick; + +class cImageMagickWrapper { +public: + cImageMagickWrapper(); + ~cImageMagickWrapper(); +protected: + Image buffer; + Color Argb2Color(tColor col); + cImage *CreateImage(int width, int height, bool preserveAspect = true); + cImage CreateImageCopy(void); + bool LoadImage(const char *fullpath); +}; + +#endif |