On Tue, 2008-06-03 at 09:39 -0400, Mauricio Henriquez wrote: > Hi Guys: > > As I explain in my previous post, right now gtk#/mono have issues about > build a pixbuf using the byte[] contrcutor, so I 'm searching for > alternatives, right now focused in build the pixbuf from a stream adn I > realy need some help becouse with diferent aproach I can't get it and > obviously I'm doing something wrong. > > First I try building a PixBufLoader from a byte[] buffer: > Gdk.PixbufLoader pbL = new PixbufLoader(buffer, ImageWidth, ImageHeight); > This allways return me "Image has zero width", don't know what is my > mistake...
I suspect the problem is that the Loader is probably expecting a formatted image like a jpg or png instead of raw byte data like the method you have been using. I probably led you astray pointing you at PixbufLoader. You may have to bite the bullet and upgrade your gtk-sharp and mono to get all the fixes you need to use that Pixbuf constructor successfully. Mike _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
