diff options
Diffstat (limited to 'imagemagickwrapper.h')
-rw-r--r-- | imagemagickwrapper.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/imagemagickwrapper.h b/imagemagickwrapper.h new file mode 100644 index 0000000..1ec7a56 --- /dev/null +++ b/imagemagickwrapper.h @@ -0,0 +1,25 @@ +#ifndef __NOPACITY_IMAGEMAGICKWRAPPER_H +#define __NOPACITY_IMAGEMAGICKWRAPPER_H + +#define X_DISPLAY_MISSING + +#include <Magick++.h> + +using namespace Magick; + +class cImageMagickWrapper { +public: + cImageMagickWrapper(); + ~cImageMagickWrapper(); +protected: + Image buffer; + Color Argb2Color(tColor col); + cImage *CreateImage(void); + cImage CreateImageCopy(void); + bool LoadImage(std::string FileName, std::string Path, std::string Extension); + bool LoadImage(const char *fullpath); + void CreateBackground(tColor back, tColor blend, int width, int height, bool mirror = false); + void CreateBackgroundReverse(tColor back, tColor blend, int width, int height); +}; + +#endif //__NOPACITY_IMAGEMAGICKWRAPPER_H |