19 May 2003 01:40:46 +0200
> Pixbuf pixbuf = new Pixbuf ("lcd.png");
> CanvasPixbuf item = new CanvasPixbuf(lcd_canvas.Root());
> item.Pixbuf = pixbuf;
> This works great... but I have to include the png file in the current
> directory when running the app. If I try to include the file in the
> resource string when compiling, i.e.
> mcs ... -resource:lcd.png ...
Pixbuf pixbuf = new Pixbuf(null, "lcd.png");
Now you could store the file inside the assembly as a resource