forms - Embedded resource and adding images -
i developing form application monodevelop. i'm using gtk#.
i need add together image widget in form. trying create image embedded resource well, before including in form.
so far have:
hbox characterpic = new hbox(); image legionnairepic = new image('somehow load embedded resource image here'); characterpic.packstart (legionnairepic);
in 'solution' section left, have added .jpeg files , changed 'build action' 'embedded resource'. however, cannot access/load them onto form them so:
image legionnairepic = new image(<namespace>.<resource>);
how add together image resource form? adding resource correctly?
i believe have access embedded files next method:
// string resource_id resource id of file in sidebar “properties” system.reflection.assembly.getexecutingassembly().getmanifestresourcestream(resource_id);
this returns resource file stream.
if helped, give thanks that guy did :)
image forms resources gtk
No comments:
Post a Comment