rsvg-sharp0.0.0.0neutralGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.To be addedTo be added
class SvgHelloWorld
{
static void Main(string[] args)
{
Gnome.Program program =
new Gnome.Program("Hello World", "1.0", Gnome.Modules.UI, args);
MyMainWindow app = new MyMainWindow(program);
app.Show();
program.Run();
}
}
class MyMainWindow
: Gnome.App
{
Gnome.Program program;
public MyMainWindow(Gnome.Program gnome_program)
: base("SVG Hello World", "SVG Hello World")
{
this.program = gnome_program;
this.DeleteEvent += new GtkSharp.DeleteEventHandler(delete_event);
string svg_file_name = "sample.svg";
Gdk.Pixbuf pixbuf = Rsvg.Tool.PixbufFromFile(svg_file_name);
Gtk.Image image = new Gtk.Image();
image.Pixbuf = pixbuf;
this.Contents = image;
}
private void delete_event(object obj, GtkSharp.DeleteEventArgs args)
{
this.program.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 addedConstructorTo be addeda To be added