[Gtk-sharp-list] Current way of creating a Pixbuf from an RGB Array
egrath
Egon.Rath at gmail.com
Fri Aug 8 00:55:16 EDT 2008
Hello,
can someone please tell me what's the current way of getting a Gdk.Pixbuf
from an byte[] full of RGB Values? I know that there is an overload of the
Gdk.Pixbuf constructor which would normally accomplish this, but according
to my tests and Bug ID 362951 it seems to be broken in 2.0 Preview.
I use the following statement:
Gdk.Pixbuf picture = new Gdk.Pixbuf( m_RawData, Gdk.Colorspace.Rgb, false,
8, m_RawResolution.Width, m_RawResolution.Height, m_RawResolution.Width * 3,
null );
and get the following exception:
Unhandled Exception: System.InvalidProgramException: Invalid IL code in
(wrapper
native-to-managed) GdkSharp.PixbufDestroyNotifyWrapper:NativeCallback
(intptr,i
ntptr): IL_0030: call 0x00000006
Any ideas?
Thanks,
Egon
--
View this message in context: http://www.nabble.com/Current-way-of-creating-a-Pixbuf-from-an-RGB-Array-tp18856992p18856992.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list