Image importer plugin using stb_image.
Supports the following formats:
- Windows Bitmap (
*.bmp), only non-1bpp, no RLE
- Graphics Interchange Format (
- Radiance HDR (
- JPEG (
*.jpeg), except for arithmetic encoding
- Portable Graymap (
- Softimage PIC (
- Portable Network Graphics (
- Portable Pixmap (
- Adobe Photoshop (
*.psd), only composited view
- Truevision TGA (
Creates RGB, RGBA, grayscale or grayscale + alpha images with 8 bits per channel. Palleted images are automatically converted to RGB(A).
This plugin depends on the Trade library and is built if
WITH_STBIMAGEIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the
"StbImageImporter" plugin from
MAGNUM_PLUGINS_IMPORTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
StbImageImporter component of the
MagnumPlugins package and link to the
This plugins provides
TgaImporter plugins, but note that this plugin doesn't have complete support for all format quirks and the performance might be worse than when using plugin dedicated for given format.
The images are imported with PixelType::
1 if the data require it.
In OpenGL ES 2.0 if EXT_