[Gtk-sharp-list] Displaying an image

Vincent Arnoux vincent.arnoux@rfo.atmel.com
Tue, 15 Feb 2005 09:50:27 +0100


Mario Carri=C3=B3n a =C3=A9crit :

>Try adding your image to your resources (mcs -resource:/path/image.png,i=
mage.png) and then invoking it:
>
>Gdk.Pixbuf.LoadFromResource("image.png");
>
>This sample works if you added an image called image.png AND it doesn't
>need the image-file, because you're reading the assembly.
>
>image1.Pixbuf =3D Gdk.Pixbuf.LoadFromResource("image.png");
>
>Should work.
> =20
>
I am using Gtk# from Mono 1.0.5 RPM. I cannot do this your way because,=20
as you can see in the code, this picture comes from a screenshot.
Rafael, can you please provide me with the code you use that's working,=20
I really can't see what's wrong.

Vincent