This project has moved and is read-only. For the latest updates, please go here.
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 );


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)


The primary benefit of this function is that you don't require including <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.

Last edited Jun 21, 2015 at 5:54 PM by walbourn, version 3