I am relatively new to GtkSharp and I am looking to use it in a windows application and I am just trying to perform a very simple operation of reading a image (tif image specifically) from the file system and displaying it to screen. I have tried many permutations of this but one would imagine that the following code snippet would work but when I execute it hangs indefinitely.
GtkImage myImage = new Gtk.Image(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read));
I also tried to read from a lower level object, namely the Gdk.Pixbuf object but it is showing the same behavior.
Gdk.Pixbuf myBuffer = new Gdk.Pixbuf(path);
I am not wed to this mindset so any advice would be highly appreciated!
Thanks!