diff --git a/ChangeLog b/ChangeLog index ada2afa92..001bc874f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-28 Mike Kestner + + * gdk/Pixbuf.custom : add FromNative static method and obsolete + CreateFromNative, which should've been static. [Fixes #74155] + 2005-03-28 Mike Kestner * generator/Signal.cs : Dispose the values passed to diff --git a/doc/en/Gdk/Pixbuf.xml b/doc/en/Gdk/Pixbuf.xml index f056212a3..9b2cda2bd 100644 --- a/doc/en/Gdk/Pixbuf.xml +++ b/doc/en/Gdk/Pixbuf.xml @@ -1619,5 +1619,35 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(memorystream); The and should contain key/value pairs. See for more details. Throws a if the save is not successful. + + + Method + + Gdk.Pixbuf + + + + + + + + + + + + + Creates a new Pixbuf object from a . + a + a + a + a + a + a + a + a + a + + + - \ No newline at end of file + diff --git a/gdk/Pixbuf.custom b/gdk/Pixbuf.custom index bac0d33a3..9a4c38acc 100644 --- a/gdk/Pixbuf.custom +++ b/gdk/Pixbuf.custom @@ -208,6 +208,12 @@ // operation will create the Pixbuf instead of two // + public static Gdk.Pixbuf FromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) { + IntPtr raw_ret = gdk_pixbuf_get_from_drawable(IntPtr.Zero, src.Handle, cmap.Handle, src_x, src_y, dest_x, dest_y, width, height); + return new Pixbuf (raw_ret); + } + + [Obsolete ("Replaced by static FromDrawable method")] public Gdk.Pixbuf CreateFromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) { IntPtr raw_ret = gdk_pixbuf_get_from_drawable((IntPtr) 0, src.Handle, cmap.Handle, src_x, src_y, dest_x, dest_y, width, height); return new Pixbuf (raw_ret);