Image loading and caching
"Enrico Weigelt, metux IT consult" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Hi folks, in my widget toolkit (*1), I've got a lot of images to draw (eg. window decorations and buttons, etc). For now, I'm loading the images again for each button, which of course is a waste of resources. So, I'm looking for a proper way for caching. The quickest approach would be just having some global pointers to the image surfaces and loading them only once - just within the button widget. OTOH, it might be worth implementing that in a generic way, maybe even in cairo or some cairo-extension library. What's your opponion on that ? --mtx -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo