* gdk/Pixbuf.custom: Added missing DllImport statement and

proper copyright header.

svn path=/trunk/gtk-sharp/; revision=17686
This commit is contained in:
Martin Willemoes Hansen 2003-08-28 10:40:14 +00:00
parent 68261125e9
commit 65f3b21788
2 changed files with 24 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-08-28 Martin Willemoes Hansen <mwh@sysrq.dk>
* gdk/Pixbuf.custom: Added missing DllImport statement and
proper copyright header.
2003-08-28 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for

View File

@ -1,7 +1,19 @@
// Pixbuf.custom - Gdk Pixbuf class customizations
//
// Extensions to Pixbuf
// Authors:
// Vladimir Vukicevic <vladimir@pobox.com>
// Miguel de Icaza <miguel@ximian.com>
// Duncan Mak <duncan@ximian.com>
// Gonzalo Paniagua Javier <gonzalo@ximian.com>
// Martin Willemoes Hansen <mwh@sysrq.dk>
//
// (C) 2002 Vladimir Vukicevic
// (C) 2003 Ximian, Inc. (Miguel de Icaza)
// (C) 2003 Ximian, Inc. (Duncan Mak)
// (C) 2003 Ximian, Inc. (Gonzalo Paniagua Javier)
// (C) 2003 Martin Willemoes Hansen
//
// This code is inserted after the automatically generated code.
IntPtr LoadFromStream (System.IO.Stream input)
{
@ -115,8 +127,12 @@
// operation will create the Pixbuf instead of two
//
/// <summary> GetFromDrawable Method </summary>
/// <remarks> To be completed </remarks>
[DllImport("libgdk_pixbuf-2.0-0.dll")]
static extern IntPtr gdk_pixbuf_get_from_drawable (
IntPtr nullpointer, IntPtr src, IntPtr cmap,
int src_x, int src_y, int dest_x, int dest_y,
int width, int height);
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);