summaryrefslogtreecommitdiff
path: root/imagemagickwrapper.h
blob: 1ec7a56a5183e9eb3e22200a48d11096fea471b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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