@dreammanor, sorry to pull in to ask my own question to Olaf but it's somewhat related.

@Olaf,

I don't want to argue again about your vision of a global ImageList but I too would like to be able to create some kind of local one, even by using cCollection. The point is that I would like to create independent UCs and be able to assign keys "1", "2",... This would fatally generate collisions between UCs if using the global Imagelist.

However, I can see that by using Cairo.Imagelist I have some advantages like the "automagically" detection of the image type. Implementing my own methods to distinguish between them would, at least, duplicate the necessary code. And certainly in a less efficient way.

So, my questions are:
How to solve potential collisions with image keys?
What's the best approach to detect the image type without relying on file extension (if using cCollection)?

Thanks