I am trying to set individual pixels in a Gtk.Image widget. The documentation states that the ImageProp property for Gtk.Image returns Gdk.Image, which seems to allow editing individual pixels, but whenever I use this, it returns only null.
My solution so far is to load the image from disk as in System.Drawing.Bitmap, edit it, save it in a temporary file, and then load it into Gtk.Image, but this is obviously not ideal.
For
Gtk.Image image = new Gtk.Image("images/test.png"); Gdk.Image gdkImage = image.ImageProp;
Why is gdkImage always null?
The image loads and displays correctly.
source share