{
static readonly double M_PI = 3.14159265358979323846;
- static void draw (Cairo.Graphics gr, int width, int height)
+ static void draw (Cairo.Context gr, int width, int height)
{
int w, h;
- SurfaceImage image;
+ ImageSurface image;
gr.Scale (width, height);
gr.LineWidth = 0.04;
- image = new SurfaceImage ("data/e.png");
+ image = new ImageSurface ("data/e.png");
w = image.Width;
h = image.Height;
(int)win.Width, (int)win.Height);
- Cairo.Graphics g = new Cairo.Graphics (s);
+ Cairo.Context g = new Cairo.Context (s);
draw (g, 500, 500);