[Gtk-sharp-list] mono-cairo PdfSurface on windows does not work

kobi kobi_zamir at yahoo.com
Tue Nov 11 23:55:41 EST 2008


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.



More information about the Gtk-sharp-list mailing list