diff options
| author | louis <louis.braun@gmx.de> | 2014-12-06 10:13:06 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2014-12-06 10:13:06 +0100 |
| commit | 974ca74366af7ab022c1fb79c4d36e1e0b4e4d14 (patch) | |
| tree | c45276da41b4117fa920c2fbebcc1ee8b50efaaa /libcore/imagecreator.h | |
| parent | 7b538a7be703c70625b38644dfc8d6c04f11af2c (diff) | |
| parent | 28fd2f5e1a5c88a91caeb4c7bd363dbaffad3789 (diff) | |
| download | vdr-plugin-skindesigner-974ca74366af7ab022c1fb79c4d36e1e0b4e4d14.tar.gz vdr-plugin-skindesigner-974ca74366af7ab022c1fb79c4d36e1e0b4e4d14.tar.bz2 | |
Merge branch 'master' of projects.vdr-developer.org:vdr-plugin-skindesigner
Diffstat (limited to 'libcore/imagecreator.h')
| -rw-r--r-- | libcore/imagecreator.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libcore/imagecreator.h b/libcore/imagecreator.h new file mode 100644 index 0000000..b877a3f --- /dev/null +++ b/libcore/imagecreator.h @@ -0,0 +1,26 @@ +#ifndef __IMAGECREATOR_H +#define __IMAGECREATOR_H + +#include <cairo.h> +#include <vdr/osd.h> +#include <string> +#include <sstream> + +using namespace std; + +class cImageCreator { +private: + int width; + int height; + cairo_surface_t *surface; + cairo_t *cr; + void SetColor(tColor color); +public: + cImageCreator(void); + virtual ~cImageCreator(); + bool InitCairoImage(int width, int height); + void DrawEllipse(tColor color, int quadrants = 0); + cImage *GetImage(void); +}; + +#endif //__IMAGECREATOR_H |
