* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Mono.Cairo / Samples / png / image.cs
index 21922463f9c94fc01696b2e4ec01fafdcbce9165..5659d14075b497a3eab706f59f86b66b727c7a5c 100644 (file)
@@ -36,7 +36,7 @@ public class CairoTest
 
 
 
-       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;
@@ -59,8 +59,8 @@ public class CairoTest
        
        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);