Fix all samples to work with new API
authorHisham Mardam Bey <hisham@mono-cvs.ximian.com>
Fri, 16 Sep 2005 10:06:50 +0000 (10:06 -0000)
committerHisham Mardam Bey <hisham@mono-cvs.ximian.com>
Fri, 16 Sep 2005 10:06:50 +0000 (10:06 -0000)
svn path=/trunk/mcs/; revision=50135

14 files changed:
mcs/class/Mono.Cairo/ChangeLog
mcs/class/Mono.Cairo/Samples/png/arc.cs
mcs/class/Mono.Cairo/Samples/png/arcneg.cs
mcs/class/Mono.Cairo/Samples/png/circles.cs
mcs/class/Mono.Cairo/Samples/png/clip.cs
mcs/class/Mono.Cairo/Samples/png/clip_img.cs
mcs/class/Mono.Cairo/Samples/png/curve_rect.cs
mcs/class/Mono.Cairo/Samples/png/curve_to.cs
mcs/class/Mono.Cairo/Samples/png/fillstroke.cs
mcs/class/Mono.Cairo/Samples/png/gradient.cs
mcs/class/Mono.Cairo/Samples/png/image.cs
mcs/class/Mono.Cairo/Samples/png/image_pattern.cs
mcs/class/Mono.Cairo/Samples/png/pattern_fill.cs
mcs/class/Mono.Cairo/Samples/png/text.cs

index 7df61602c752bd9fb7a638597040788e4e789b5c..67695fd1bc640dd5597bdc56c7cf73e92ee2ebef 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-12  Hisham Mardam Bey  <hisham.mardambey@gmail.com>
+
+        * Samples/: Fix all samples to work with new API changes.
+
 2005-09-12  John Luke  <john.luke@gmail.com>
 
        * Mono.Cairo/Surface.cs: add two ImageSurface ctors
index ea842d70164c878f373fca00da6e124569605242..ee7548d859b3e4b816d30cfa3072ecb5c4565ac4 100644 (file)
@@ -64,7 +64,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index b5eb38920796ad05a9da000cecc62ee12c94c1aa..ecf6277743634c9b38ad506707f0c7c97ec98cc8 100644 (file)
@@ -63,7 +63,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 56586d3dd2f82a1df9c6b861e734c2211ed0457c..6c156fa4d5e20f3ec17f17944d5003a5c0a0e72f 100644 (file)
@@ -146,7 +146,7 @@ public class CairoTest
                
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 84dac78540240e8dd5793bb6720eb035606cf17c..23ba79c7c78790999cd3cf9b27a65464cff5e509 100644 (file)
@@ -56,7 +56,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 2f5e70e82e9997b55f90611681889cb8e73acff1..1cc033a4fba251d2684aa187ebddd1d8c2ff2f46 100644 (file)
@@ -73,7 +73,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 0b9f6ecfe78de0549b2f88a1a24e6d06767abe40..adf1d7c32ea83a8cb050b1308b9ffa05360fdca7 100644 (file)
@@ -167,7 +167,7 @@ public class CairoTest
                
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 9122db8614cb32e2b7857bb41f8f1bea60900181..fa09b2177b6f6efb47c61eeaa92274fb3c6a710c 100644 (file)
@@ -62,7 +62,7 @@ public class CairoTest
                
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 941a562393169255da96394d33e5b2f1e9cae51e..dc89c3a53783b0b566a8e5b91ef7536dabffcacc 100644 (file)
@@ -61,7 +61,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 95bd10fa5f19517ce3756f1a1d6c2e7598d21f59..611fff39c143c595dc75f6612d1e4154d132243e 100644 (file)
@@ -66,7 +66,7 @@ public class CairoTest
                
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 21922463f9c94fc01696b2e4ec01fafdcbce9165..a00084d94576414c35bd4395eb5792c6bdc1a064 100644 (file)
@@ -59,7 +59,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 4cad1bb9b4a4d386accc25a863e5f6babd035572..3dd190276ebb886aeb659832c998902f60f49a31 100644 (file)
@@ -73,7 +73,7 @@ public class CairoTest
                
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 5ca06602e1613418d67bf37310f4b2b59d10623c..835eb8f5a850942dd75c05a97f0f660192fb3233 100644 (file)
@@ -135,7 +135,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);
index 24e2534da7a262d774ed7efd856775bc53c32038..4916b003ef35889fb4b816bc954356f0ec376c0e 100644 (file)
@@ -61,7 +61,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);