Hi, > maybe someone can give me a short hint. I am new to GTK programming and > currently I am playing around with the basic functions. in the > following example, > what do I have to assign to the pixbuf variable to avoid the > "dest_pixbuf != NULL' failed" error ?
[...]
> public PicChanger(string filename)
> {
> Console.WriteLine(filename);
> Gdk.Pixbuf tempPixbuf = new Gdk.Pixbuf(filename);
> tempPixbuf.CopyArea(100,100,50,50,pixbuf,0,0);
Like all C# classes, you need to intialize pixbuf before using it, i.e.:
pixbuf = new Gdk.Pixbuf (...);
Several argument lists are available for this constructor. You can find
them all at http://go-mono.org/docs/monodoc.ashx?link=T%3aGdk.Pixbuf%2f%
2a.
> }
--
Brad Taylor
Genome Software LLC
http://www.getcoded.net
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
