diff options
author | louis <louis.braun@gmx.de> | 2015-03-12 17:28:35 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-12 17:28:35 +0100 |
commit | 44680b6ce80221e91cb14dca9ca7fad7015f1297 (patch) | |
tree | 8af805db50568ba41ebb461309d5724320295441 /libcore/cairoimage.h | |
parent | 45cb6c1663d66ebc22bed8dbc8cdbacdc82ad4a8 (diff) | |
download | vdr-plugin-skindesigner-44680b6ce80221e91cb14dca9ca7fad7015f1297.tar.gz vdr-plugin-skindesigner-44680b6ce80221e91cb14dca9ca7fad7015f1297.tar.bz2 |
version 0.3.00.3.0
Diffstat (limited to 'libcore/cairoimage.h')
-rw-r--r-- | libcore/cairoimage.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libcore/cairoimage.h b/libcore/cairoimage.h new file mode 100644 index 0000000..02e9c89 --- /dev/null +++ b/libcore/cairoimage.h @@ -0,0 +1,26 @@ +#ifndef __CAIROIMAGE_H +#define __CAIROIMAGE_H + +#include <cairo.h> +#include <vdr/osd.h> +#include <string> +#include <sstream> + +using namespace std; + +class cCairoImage { +private: + int width; + int height; + cairo_surface_t *surface; + cairo_t *cr; + void SetColor(tColor color); + int GetTextWidth(string text, string font, int size); +public: + cCairoImage(void); + virtual ~cCairoImage(); + void InitCairoImage(int width, int height); + void DrawTextVertical(string text, tColor color, string font, int size); + cImage *GetImage(void); +}; +#endif //__CAIROIMAGE_H
\ No newline at end of file |