Hello list, I want to create an image from numeric values. I have a 2d array with values between 0 and 65535. >From those values I want to create an 16bits grayscale pictures.
So I start with that line : Gdk.Image gdi = new Gdk.Image(Gdk.ImageType.Normal, Gdk.Visual.GetBestWithType(Gdk.VisualType.Grayscale), 512, 512); but when I execute it returns the following error : (gtktif:16081): Gdk-CRITICAL **: gdk_visual_get_screen: assertion `GDK_IS_VISUAL (visual)' failed (gtktif:16081): Gdk-CRITICAL **: _gdk_image_new_for_depth: assertion `visual || depth != -1' failed How can I do ? -- Regards, Alexandre. _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
