This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

Magnum::Trade::TgaImageConverter class

TGA image converter plugin.

Creates Truevision TGA (*.tga) files from images with format PixelFormat::RGB, PixelFormat::RGBA or PixelFormat::Red (or PixelFormat::Luminance in OpenGL ES 2.0 and WebGL 1.0) and type PixelType::UnsignedByte.

This plugin depends on the Trade library and is built if WITH_TGAIMAGECONVERTER is enabled when building Magnum. To use as a dynamic plugin, you need to load the "TgaImageConverter" plugin from MAGNUM_PLUGINS_IMAGECONVERTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the TgaImageConverter component of the Magnum package and link to the Magnum::TgaImageConverter target. See Downloading and building, Usage with CMake and Loading and using plugins for more information.

Behavior and limitations

Does not support non-default PixelStorage::swapBytes() values.

Base classes

class AbstractImageConverter
Base for image converter plugins.

Constructors, destructors, conversion operators

TgaImageConverter() explicit
Default constructor.
TgaImageConverter(PluginManager::AbstractManager& manager, const std::string& plugin) explicit
Plugin manager constructor.

Private functions

auto doFeatures() const override -> Features virtual
Implementation of features()
auto doExportToData(const ImageView2D& image) override -> Containers::Array<char> virtual
Implementation of exportToData(const ImageView2D&)