Example #1
0
        public unsafe void SaveToCallback(PixbufSaveFunc save_func, string type, string[] option_keys, string[] option_values)
        {
            GdkSharp.PixbufSaveFuncWrapper save_func_wrapper = new GdkSharp.PixbufSaveFuncWrapper (save_func);
            IntPtr error = IntPtr.Zero;
            IntPtr ntype = GLib.Marshaller.StringToPtrGStrdup (type);
            IntPtr[] nkeys = NullTerm (option_keys);
            IntPtr[] nvals = NullTerm (option_values);
            bool saved = gdk_pixbuf_save_to_callbackv (Handle, save_func_wrapper.NativeDelegate, IntPtr.Zero, ntype, nkeys, nvals, out error);
            GLib.Marshaller.Free (ntype);
            ReleaseArray (nkeys);
            ReleaseArray (nvals);

            if (!saved)
                throw new GLib.GException (error);
        }
Example #2
0
        public unsafe void SaveToCallback(PixbufSaveFunc save_func, string type, string[] option_keys, string[] option_values)
        {
            GdkSharp.PixbufSaveFuncWrapper save_func_wrapper = new GdkSharp.PixbufSaveFuncWrapper (save_func);
            IntPtr error = IntPtr.Zero;
            IntPtr ntype = GLib.Marshaller.StringToPtrGStrdup (type);
            IntPtr[] nkeys = NullTerm (option_keys);
            IntPtr[] nvals = NullTerm (option_values);
            bool saved = gdk_pixbuf_save_to_callbackv (Handle, save_func_wrapper.NativeDelegate, IntPtr.Zero, ntype, nkeys, nvals, out error);
            GLib.Marshaller.Free (ntype);
            ReleaseArray (nkeys);
            ReleaseArray (nvals);

            if (!saved)
                throw new GLib.GException (error);
        }
Example #3
0
 public unsafe void SaveToCallback(PixbufSaveFunc save_func, string type)
 {
     SaveToCallback (save_func, type, new string [0], new string [0]);
 }
Example #4
0
 public unsafe void SaveToCallback(PixbufSaveFunc save_func, string type)
 {
     SaveToCallback (save_func, type, new string [0], new string [0]);
 }