Magnum::Trade::TgaImageConverter class

TGA image converter plugin.

Creates Truevision TGA (*.tga) files from images with format PixelFormat::RGB8Unorm, PixelFormat::RGBA8Unorm or PixelFormat::R8Unorm.

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.

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&)