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

David Anes david.anes at gmail.com
Sat Mar 3 19:50:42 EST 2007


Hi José.

Sorry to reply only to you, it was clearly a mistake.

It's a bit later here in Spain, so tomorrow I will give you some tips and
hints so you can get back the images from resources. It is not needed to
have paths, simply get a stream to the resource a read it back.

Cheers,
David Anes.

2007/3/4, José Pablo Fernández <pupeno at pupeno.com>:
>
> 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 --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070304/6b820aa1/attachment.html 


More information about the Mono-list mailing list