Содержание
DirectXTex |
---|
Returns a WIC GUID for a given file container given a simple enumeration value. This function is optional and you can instead use the WIC container GUID directly instead.
REFGUID GetWICCodec( _In_ WICCodecs codec );
Parameters
The codecs enumeration is one of the following values:
WIC_CODEC_BMP
Windows Bitmap (.bmp
)WIC_CODEC_JPEG
Joint Photographic Experts Group (.jpg
,.jpeg
)WIC_CODEC_PNG
Portable Network Graphics (.png
)WIC_CODEC_TIFF
Tagged Image File Format (.tif
,.tiff
)WIC_CODEC_GIF
Graphics Interchange Format (.gif
)WIC_CODEC_WMP
Windows Media Photo / HD Photo / JPEG XR (.hdp
,.jxr
,.wdp
).WIC_CODEC_ICO
Windows Icon (.ico
)
Remarks
The primary benefit of this function is that you do not have to include <wincodec.h>
for every client module that calls DirectXTex's WIC I/O Functions.
Platform notes
Do not use WIC_CODEC_WMP
for Xbox One XDK applications as the WMP / HD Photo WIC codec is not supported by that platform.
For Use
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Windows 7 Service Pack 1
- Xbox One
- Xbox Series X|S
- Windows Subsystem for Linux
Architecture
- x86
- x64
- ARM64
For Development
- Visual Studio 2022
- Visual Studio 2019 (16.11)
- clang/LLVM v12 - v18
- GCC 10.5, 11.4, 12.3
- MinGW 12.2, 13.2
- CMake 3.20
Related Projects
DirectX Tool Kit for DirectX 11
DirectX Tool Kit for DirectX 12
Tools
See also
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.