Beispiel #1
0
        internal static Gdk.Pixbuf ImageToGtkPixbuf(Image img)
        {
            if (img == null)
            {
                return(null);
            }
            GtkSharpImage gi = img.DriverObject as GtkSharpImage;

            if (gi != null)
            {
                return(gi.pixbuf);
            }
            return(null);
        }
Beispiel #2
0
        internal static Gtk.Image ImageToGtkImage(Image img)
        {
            if (img == null)
            {
                return(null);
            }
            GtkSharpImage gi = img.DriverObject as GtkSharpImage;

            if (gi != null)
            {
                Gtk.Image res = gi.CreateGtkImage();
                if (res != null)
                {
                    return(res);
                }
            }

            return(null);
        }