the program from cairo documentation:

using (PdfSurface draw = new PdfSurface ("antialias.pdf", 70, 150)){
  using (Context gr = new Context(draw)){

     gr.LineWidth = 9;                  // sets the line width
     gr.Color = new Color (0, 0, 0, 1); // red, green, blue, alpha
     gr.MoveTo (10, 10);                        // sets the Context's start 
point.
     gr.LineTo (40, 60);                        // draws a "virtual" line from 
5,5 to 20,30
     gr.Stroke ();                      //stroke the line to the image surface
                                                                  
     draw.WriteToPng ("antialias.png"); //save the image as a png image.
    draw.Finish();  //save the image as a pdf file.
  }
}

compiles fine on linux and on windows using:
gmcs antialias.cs -pkg:mono-cairo

on linux i use gmcs:
Mono C# compiler version 1.9.1.0
Mono JIT compiler version 1.9.1 (tarball)
on windows:
Mono C# compiler version 2.0.0.0
Mono JIT compiler version 2.0 (tarball)

on linux the program (the one i compiled on linux AND the one i compiled on
windows) produce a working pdf file.
on windows the program produce a corrupted empty pdf file.

what am i doing wrong ?

thanks 

-- 
View this message in context: 
http://www.nabble.com/mono-cairo-PdfSurface-on-windows-does-not-work-tp20454236p20454236.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to