Not easy to do as the image loading pipeline is abstracted to use IWICBitmapSource - Xbox HDR screenshot detection kind of breaks that abstraction, so the better fix would be to detect this early in image loading (when IWICBitmapDecoder and IWICBitmapFrameDecode are available) and cache the information.
Not easy to do as the image loading pipeline is abstracted to use IWICBitmapSource - Xbox HDR screenshot detection kind of breaks that abstraction, so the better fix would be to detect this early in image loading (when IWICBitmapDecoder and IWICBitmapFrameDecode are available) and cache the information.