summaryrefslogtreecommitdiff
path: root/libcore/cairoimage.h
blob: 02e9c89ac0202cf9ddf99a427fecf17b070dc298 (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
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