- static void draw (Cairo.Graphics gr, int width, int height)
+ static void draw (Cairo.Context gr, int width, int height)
{
int w, h;
ImageSurface image;
static void Main ()
{
- Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
- Cairo.Graphics g = new Cairo.Graphics (s);
+ Surface s = new ImageSurface (Format.ARGB32, 500, 500);
+ Cairo.Context g = new Cairo.Context (s);
draw (g, 500, 500);