* Samples/x11: Fixed samples with new changes.
* Samples/gtk: Fixed samples with new changes.
svn path=/trunk/mcs/; revision=49596
2005-09-07 Hisham Mardam Bey <hisham.mardambey@gmail.com>
* Samples/png: Fixed samples with new changes.
+ * Samples/x11: Fixed samples with new changes.
+ * Samples/gtk: Fixed samples with new changes.
2005-09-06 John Luke <john.luke@gmail.com>
static void draw (Cairo.Graphics gr, int width, int height)
{
int w, h;
- SurfaceImage image;
+ ImageSurface image;
gr.Scale (width, height);
gr.LineWidth = 0.04;
gr.Clip ();
gr.NewPath ();
- image = new SurfaceImage("data/e.png");
+ image = new ImageSurface("data/e.png");
w = image.Width;
h = image.Height;
{
gr.Scale (width, height);
gr.LineWidth = 0.04;
- Pattern pat;
+ LinearGradient pat;
- pat = new PatternLinear (0.0, 0.0, 0.0, 1.0);
+ pat = new LinearGradient (0.0, 0.0, 0.0, 1.0);
pat.AddColorStop (1, new Color (0, 0, 0, 1) );
pat.AddColorStop (0, new Color (1, 1, 1, 1) );
gr.Rectangle ( new PointD (0, 0),
gr.Fill ();
pat.Destroy ();
- pat = new PatternRadial (0.45, 0.4, 0.1,
+ RadialGradient pat2 = new RadialGradient (0.45, 0.4, 0.1,
0.4, 0.4, 0.5);
- pat.AddColorStop (0, new Color (1, 1, 1, 1) );
- pat.AddColorStop (1, new Color (0, 0, 0, 1) );
- gr.Pattern = pat;
+ pat2.AddColorStop (0, new Color (1, 1, 1, 1) );
+ pat2.AddColorStop (1, new Color (0, 0, 0, 1) );
+ gr.Pattern = pat2;
gr.Arc (0.5, 0.5, 0.3, 0, 2 * M_PI);
gr.Fill ();
- pat.Destroy ();
+ pat2.Destroy ();
}
static void draw (Cairo.Graphics 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;
static void draw (Cairo.Graphics gr, int width, int height)
{
int w, h;
- SurfaceImage image;
+ ImageSurface image;
Matrix matrix;
- Pattern pattern;
+ SurfacePattern pattern;
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;
- pattern = new Pattern (image);
+ pattern = new SurfacePattern (image);
pattern.Extend = Cairo.Extend.Repeat;
gr.Translate (0.5, 0.5);
static void draw (Cairo.Graphics gr, int width, int height)
{
int w, h;
- SurfaceImage image;
+ ImageSurface image;
gr.Scale (width, height);
gr.LineWidth = 0.04;
gr.Clip ();
gr.NewPath ();
- image = new SurfaceImage("data/e.png");
+ image = new ImageSurface("data/e.png");
w = image.Width;
h = image.Height;
{
gr.Scale (width, height);
gr.LineWidth = 0.04;
- Pattern pat;
- pat = new PatternLinear (0.0, 0.0, 0.0, 1.0);
+ LinearGradient pat = new LinearGradient (0.0, 0.0, 0.0, 1.0);
pat.AddColorStop (1, new Color (0, 0, 0, 1) );
pat.AddColorStop (0, new Color (1, 1, 1, 1) );
gr.Rectangle ( new PointD (0, 0),
gr.Fill ();
pat.Destroy ();
- pat = new PatternRadial (0.45, 0.4, 0.1,
+ RadialGradient pat2 = new RadialGradient (0.45, 0.4, 0.1,
0.4, 0.4, 0.5);
- pat.AddColorStop (0, new Color (1, 1, 1, 1) );
- pat.AddColorStop (1, new Color (0, 0, 0, 1) );
- gr.Pattern = pat;
+ pat2.AddColorStop (0, new Color (1, 1, 1, 1) );
+ pat2.AddColorStop (1, new Color (0, 0, 0, 1) );
+ gr.Pattern = pat2;
gr.Arc (0.5, 0.5, 0.3, 0, 2 * M_PI);
gr.Fill ();
- pat.Destroy ();
+ pat2.Destroy ();
}
static void draw (Cairo.Graphics 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;
static void draw (Cairo.Graphics gr, int width, int height)
{
int w, h;
- SurfaceImage image;
+ ImageSurface image;
Matrix matrix;
- Pattern pattern;
+ SurfacePattern pattern;
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;
- pattern = new Pattern (image);
+ pattern = new SurfacePattern (image);
pattern.Extend = Cairo.Extend.Repeat;
gr.Translate (0.5, 0.5);