1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-24 13:20:13 +00:00

Updated TGA I O Functions (markdown)

Chuck Walbourn 2020-09-22 12:55:32 -07:00
parent 4817dd1bb8
commit 56d48cbe47

@ -52,7 +52,7 @@ HRESULT SaveToTGAFile( const Image& image,
# Parameters
For the load functions, the _metadata_ parameter can be nullptr as this information is also available in the returned **ScratchImage**.
For the save functions, a TGA 2.0 extension footer is written if _metadata_ is non-null.
For the save functions, a TGA 2.0 extension footer is written if _metadata_ is non-null. It sets a 1/2.2 gamma for SRGB formats, and includes the alpha mode.
> Support for writing the TGA 2.0 extension footer was added in DirectXTex for October 2019.
@ -107,7 +107,7 @@ if ( FAILED(hr) )
* The reader does not support interleaved files (this feature was deprecated)
* The reader only supports 8-bit greyscale, 16-bit truecolor, 24-bit truecolor, and 32-bit truecolor images
* The writer always creates uncompressed files, although the reader can load RLE compressed files
* The reader does not support the ``TGA`` header extension metadata, which is ignored by the reader. The writer can optionally write the TGA 2.0 extension area.
* The reader does not support the ``TGA`` header extension metadata, which is ignored by the reader except for the alpha mode. The writer can optionally write the TGA 2.0 extension area.
* For 16-bit and 32-bit truecolor images, there is a special-case fixup if the entire alpha channel is 0 it is assumed to be fully opaque unless you use ``TGA_FLAGS_ALLOW_ALL_ZERO_ALPHA``.
# Windows Store apps