From 7ce445025e10bf4eb0c4066907e588039c09f1ad Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 3 Dec 2014 18:12:37 +0100 Subject: drawing ellipses antialiased with Cairo --- libcore/imagecreator.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libcore/imagecreator.h (limited to 'libcore/imagecreator.h') 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 +#include +#include +#include + +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 -- cgit v1.2.3