Magnum::Trade::PngImageConverter class

PNG image converter plugin.

Creates Portable Network Graphics (*.png) files from images with format PixelFormat::R8Unorm / PixelFormat::R16Unorm, PixelFormat::RG8Unorm / PixelFormat::RG16Unorm, PixelFormat::RGB8Unorm / PixelFormat::RGB16Unorm or PixelFormat::RGBA8Unorm / PixelFormat::RGBA16Unorm.

This plugin depends on the Trade and libPNG libraries and is built if WITH_PNGIMAGECONVERTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the "PngImageConverter" 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 PngImageConverter component of the MagnumPlugins package and link to the MagnumPlugins::PngImageConverter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.

Base classes

class AbstractImageConverter
Base for image converter plugins.

Constructors, destructors, conversion operators

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