2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>

* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
	of a byte * -- anyone who needs a byte * can do the cast in an unsafe
	context already.

svn path=/trunk/gtk-sharp/; revision=27617
This commit is contained in:
Vladimir Vukicevic 2004-05-18 19:03:30 +00:00
parent ef102fe7cc
commit 518ce8f85b
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>
* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
of a byte * -- anyone who needs a byte * can do the cast in an unsafe
context already.
2004-05-18 Todd Berman <tberman@sevenl.net> 2004-05-18 Todd Berman <tberman@sevenl.net>
* samples/Scribble.cs: Im bored, you can erase, etc * samples/Scribble.cs: Im bored, you can erase, etc

View file

@ -142,11 +142,11 @@
// the 'Pixels' property // the 'Pixels' property
// //
[DllImport("libgdk_pixbuf-2.0-0.dll")] [DllImport("libgdk_pixbuf-2.0-0.dll")]
static extern unsafe byte* gdk_pixbuf_get_pixels(IntPtr raw); static extern IntPtr gdk_pixbuf_get_pixels(IntPtr raw);
public unsafe byte* Pixels { public unsafe IntPtr Pixels {
get { get {
byte *ret = gdk_pixbuf_get_pixels (Handle); IntPtr ret = gdk_pixbuf_get_pixels (Handle);
return ret; return ret;
} }
} }