[Mono-list] What do I do with my images...

José Pablo Fernández pupeno at pupeno.com
Sat Mar 3 19:13:11 EST 2007


Hello David,
Thank you for your reply, I hope you don't mind that I put the thread back 
into the mailing list, I believe this can be useful for other people (or 
myself, in a couple of months when I won't have this mail anymore and it'll 
be in the archives).

On Saturday March 3 2007 16:21, David Anes wrote:
> Hi Pablo,
> Embed the images into the assembly as resources,

I believe I have already done that. I've added the images as deployable 
resources in MonoDevelop. When I have to pick an icon for example, I can 
click in the Resources tab and see my images there. Is that enough?

> and load back the images at runtime.

Can you give me any hints about how this is done?
Note: the images are SVG and are loaded my own code (wrapper around Cairo and 
Rsvg). Having a class/method resolving the absolute path having only a 
relative path (like "images/blah.svg") would be the best, but if I can get 
the file as a kind of object, then I'll figure it out how to use that object.
I've played a bit with ResourceManager because I understand that is the class 
for this, but I couldn't get anywhere.

Thank you.
-- 
José Pablo Fernández <pupeno at pupeno.com> (http://pupeno.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070303/b94d2c66/attachment.bin 


More information about the Mono-list mailing list