rsvg-sharp2.16.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.To be added
using System;
using Gtk;
class SvgHelloWorld
{
static void Main (string[] args)
{
Application.Init ();
MyMainWindow app = new MyMainWindow ();
app.ShowAll ();
Application.Run ();
}
}
class MyMainWindow : Gtk.Window
{
public MyMainWindow () : base ("SVG Hello World")
{
this.DeleteEvent += new DeleteEventHandler (delete_event);
string svg_file_name = "sample.svg";
Gdk.Pixbuf pixbuf = Rsvg.Tool.PixbufFromFile (svg_file_name);
Image image = new Image ();
image.Pixbuf = pixbuf;
this.Add (image);
}
private void delete_event (object obj, DeleteEventArgs args)
{
Application.Quit ();
}
}
System.ObjectMethodGdk.PixbufTo be added
a
a
a
a
a a To be addedMethodGdk.PixbufTo be added
a
a
a a To be addedMethodGdk.PixbufTo be added
a
a
a a To be addedMethodGdk.PixbufTo be added
a
a
a a To be addedMethodGdk.PixbufTo be added
a a To be addedConstructorInternal constructorShould never be used.