[Gtk-sharp-list] Gdk.Pixbuf

Parrish M Myers parrishmyers@yahoo.com
Sun, 18 May 2003 16:36:34 -0700 (PDT)


I need some help...  I have searched the gtk-sharp source code and all
available documentation.  All to no avail.

I am loading an Image onto a canvas widget.  The way I do it now is:

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 ...

I still have to include the file in the current directory.  Is there a
way to generate a pixbuf using the resource?


Academia is a little like child   | Parrish M. Myers
rearing, it provides a chance at  | The Wacked Jester
immortality without the stretch   | parrishmyers@yahoo.com
marks  -- (unknown source)        |

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.