Meziantou.Framework.Imaging.Formats namespace

Classes

NameDescription
AniEncoderImmutable settings for Windows animated cursor (.ani) encoding.
AvifEncoderImmutable settings for AVIF encoding.
BmpEncoderImmutable settings for BMP encoding (Windows bitmaps).
CineonEncoderImmutable settings for Kodak Cineon encoding (Image File Format Proposal for Digital Pictures, draft 4.5): film scans of one gray or three RGB channels.
CustomImageEncoderThe base class of the encoders of the formats the library does not write itself. Pass an encoder to Image.Save and its overloads, or let Image.Save create it from the file extension (CustomImageCodec.CreateEncoder).
DdsEncoderImmutable settings for DDS (DirectDraw Surface) encoding: uncompressed or BC1 to BC7 textures, with their mipmaps.
DngEncoderImmutable settings for DNG encoding (Adobe Digital Negative specification 1.7.1): the image as linear raw data (LinearRaw), with a camera profile whose camera color space is linear BT.709 RGB.
DpxEncoderImmutable settings for DPX encoding (SMPTE ST 268, version 2.0: one RGB, RGBA or luma image element).
GainMapA gain map to write next to an image (JpegEncoder.GainMap, AvifEncoder.GainMap): the image whose samples give the gain, and the parameters that turn them into the gain (ISO 21496-1).
GifEncoderImmutable settings for GIF encoding.
HeicEncoderImmutable settings for HEIC encoding.
IcoEncoderImmutable settings for Windows icon (.ico) and cursor (.cur) encoding.
ImageEncoderThe base class of the immutable encoder settings accepted by the save and writer APIs.
Jpeg2000EncoderImmutable JPEG 2000 encoder settings (ISO/IEC 15444-1). By default the output is a JP2 file compressed without loss: every pixel format is stored as it is, 16-bit samples and the color of fully transparent pixels included.
Jpeg2000QualityLayerA quality layer of a JPEG 2000 output (Jpeg2000Encoder.QualityLayers): how many bytes the output may have up to the end of this layer, or the rest of the coding passes.
JpegEncoderImmutable settings for JPEG encoding.
JpegXlEncoderImmutable JPEG XL encoder settings. The output is lossless by default (Modular coding): every pixel format is stored as it is, 16-bit samples and the color of fully transparent pixels included. JpegXlEncoder.Compression selects the lossy coding (VarDCT), controlled by JpegXlEncoder.Quality; its alpha channel stays lossless. An image is written as a bare codestream, or in the JPEG XL container when it has EXIF or XMP metadata or when it needs level 10 of the format (16-bit samples, more than 262,144 pixels per side or 268,435,456 pixels, an ICC profile above 4 MiB).
Ktx2EncoderImmutable settings for KTX 2.0 encoding: uncompressed, BCn, ETC2, EAC or ASTC textures, with their mip levels, optionally supercompressed with ZLIB.
OpenExrEncoderImmutable settings for OpenEXR encoding (linear-light floating-point still images, lossless by default).
OpenExrTilingImmutable settings of tiled OpenEXR output (OpenExrEncoder.Tiling): the tile size and the resolution levels.
PngEncoderImmutable settings for lossless PNG and APNG encoding.
PnmEncoderImmutable settings for Netpbm encoding (PBM, PGM, PPM and PAM).
PsdEncoderImmutable settings for Adobe Photoshop encoding (Adobe Photoshop File Formats Specification): a flat document whose composite image is the image.
QoiEncoderImmutable settings for QOI encoding (lossless 8-bit RGB and RGBA still images).
RadianceEncoderImmutable settings for Radiance HDR encoding (RGBE: linear-light, high dynamic range still images).
TgaEncoderImmutable settings for TGA encoding (Truevision TGA 2.0 true-color and grayscale still images).
TiffEncoderImmutable settings for TIFF and BigTIFF encoding.
WebPEncoderImmutable settings for WebP encoding (still images and animations).

Enums

NameDescription
AvifChromaSubsamplingSelects the chroma subsampling of lossy color AVIF output.
AvifCompressionSelects the AV1 coding of every image of an AVIF file.
BmpCompressionThe compression used by BmpEncoder.
BmpDitheringSelects the dithering applied while reducing colors to the palette of an indexed BMP layout.
BmpPixelLayoutThe pixel layout written by BmpEncoder.
BmpRowOrderThe order of the rows written by BmpEncoder.
DdsHeaderVersionThe header DdsEncoder writes after DDS_HEADER.
DdsTextureFormatThe DXGI_FORMAT of the surfaces DdsEncoder writes: uncompressed pixels, or blocks of 4×4 texels compressed with BC1 to BC7.
DngCompressionThe compression of the raw image of a DNG file written by DngEncoder.
DpxByteOrderThe byte order of the fields and of the image data of a DPX file written by DpxEncoder.
FrameDurationRoundingControls how an encoder converts exact FrameDuration values to the timing representation of its format.
GifAlphaModeControls how the GIF encoder maps alpha to GIF's single fully transparent palette entry.
GifDitheringSelects the dithering applied while reducing colors to a GIF palette.
HeicChromaSubsamplingSelects the chroma subsampling of lossy color HEIC output.
HeicCompressionSelects the HEVC coding of every image of an HEIC file.
IconKindWhich Windows icon container IcoEncoder writes.
IconPayloadFormatHow IcoEncoder stores the pixels of one representation, and AniEncoder those of one frame.
Jpeg2000BlockCoderThe coder of the code-blocks of a JPEG 2000 output.
Jpeg2000CompressionHow a JPEG 2000 image is compressed.
Jpeg2000ContainerWhat a JPEG 2000 output is made of.
Jpeg2000ProgressionOrderThe order of the packets of a JPEG 2000 tile (T.800, B.12): what a reader that stops early gets. The letters are the loops from the outermost one: the quality layer, the resolution level, the component and the position (the precinct).
Jpeg2000TilePartDivisionWhere a JPEG 2000 tile is cut into tile-parts (T.800, A.4.2): each tile-part holds packets that follow each other in the progression order, so that a reader or a server can find the start of a resolution level, of a layer or of a component without reading the packets.
JpegChromaSubsamplingSelects the chroma subsampling of color JPEG output.
JpegEncodingProcessSelects the coding process of JPEG output (ITU-T T.81).
JpegEntropyCodingSelects the entropy coding of JPEG output (ITU-T T.81).
JpegXlCompressionSelects how the frames of a JPEG XL image are coded.
Ktx2SupercompressionThe supercompression scheme of the mip levels of a KTX 2.0 file written by Ktx2Encoder.
Ktx2TextureFormatThe format of the texels Ktx2Encoder writes: uncompressed, or block-compressed with BCn, ETC2, EAC or ASTC.
MetadataHandlingControls what an encoder does with image metadata it cannot represent.
OpenExrCompressionThe compression of the chunks of an OpenEXR file written by OpenExrEncoder.
OpenExrLevelModeThe resolution levels of a tiled OpenEXR file written by OpenExrEncoder.
OpenExrLevelRoundingHow the size of a level of a tiled OpenEXR file is rounded when it is halved (OpenExrTiling.LevelRounding).
OpenExrLineOrderThe order of the chunks of an OpenEXR file written by OpenExrEncoder (the lineOrder attribute).
OpenExrPixelTypeThe type of the samples written by OpenExrEncoder.
PngAnimationModeSelects between static PNG and animated PNG (APNG) output.
PngFilterSelects the PNG row filters used before compression.
PngOptimizationSelects how much PngEncoder searches for a smaller file.
PngPixelLayoutThe sample layout written by PngEncoder.
PnmEncodingThe raster encoding written by PnmEncoder.
PnmPixelLayoutThe pixel layout written by PnmEncoder.
PsdCompressionThe compression of the image data of an Adobe Photoshop file written by PsdEncoder.
RadianceCompressionThe encoding of the scanlines of a Radiance HDR file written by RadianceEncoder.
TextureCompressionQualityHow hard the block compressors of DdsEncoder and Ktx2Encoder search for the best encoding of each block (BC1 to BC7, ETC2, EAC, ASTC). It has no effect on uncompressed formats.
TgaCompressionThe compression used by TgaEncoder.
TiffCompressionHow TiffEncoder compresses the strips or tiles of a page.
TiffPixelLayoutThe sample layout written by TiffEncoder.
TiffPredictorThe predictor TiffEncoder applies to integer samples before compressing them.
WebPCompressionSelects the WebP bitstream used for every frame.