AImageLoaderRegistry#
Registry of IImageLoaders used by IDrawable::fromUrl and AImage::fromUrl.
| Header: | #include <AUI/Image/AImageLoaderRegistry.h> |
| CMake: | aui_link(my_target PUBLIC aui::image) |
Detailed Description#
The singleton AImageLoaderRegistry::inst() is populated by aui.image on startup with loaders for bmp, png, jpg,
webp, svg (vector) and gif/animated webp (animated). supportedFormats() lists their names.
Loaders are tried in registration order; the first one whose matches returns true wins. Register your own with
registerRasterLoader, registerVectorLoader or registerAnimatedLoader. See Adding a custom image format.