[Gtk-sharp-list] Gdk.Pixbuf.Pixel problem

Yury Sulsky ysulsky@hotmail.com
Sun, 14 Dec 2003 17:52:28 -0500


Hello,

When I try to compile this:

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 decompiled gdk-sharp.dll, and found that the return type of get_Pixels(), 
as well as of the private gdk_pixbuf_get_pixels(), was an int8.

Is this correct?

Thanks,
Yury

_________________________________________________________________
Shop online for kidsí toys by age group, price range, and toy category at 
MSN Shopping. No waiting for a clerk to help you! http://shopping.msn.com