[Gtk-sharp-list] Gdk.Pixbuf.Pixels return type

Yury Sulsky ysulsky@hotmail.com
Fri, 12 Dec 2003 21:56:37 -0500


Hi,

When I try to compile this code:

using Gdk;
class temp
{
  unsafe temp()
  {
    Pixbuf p = new Pixbuf (Colorspace.Rgb, false, 24, 100, 100);
    byte *pixels = p.Pixels;
  }
}

I get the following error:

$ mcs --unsafe -r:gdk-sharp temp.cs
temp.cs(7) error CS0029: Cannot convert implicitly from `byte' to `byte*'
Compilation failed: 1 error(s), 0 warnings

I looked at the disassembly for gdk-sharp, and found that the return value 
for both get_Pixels() and the native gdk_pixbuf_get_pixels() is an int8.

Is this correct?

Thanks,
Yury

_________________________________________________________________
Winterize your home with tips from MSN House & Home. 
http://special.msn.com/home/warmhome.armx