Toggle HDR mode in C#?
-
Hello Beautiful People, I do photography as a hobby and also play games. As such, I often use SDR mode for the desktop / photography side, but want to swap to HDR mode for playing some games. Being a bit forgetful, I’ll launch a game from Steam/GOG only realise that I forgot use Win + Alt + B to toggle HDR. Now I have to sit through all the opening movies before I can exit the game, manually turn on HDR then relaunch. I’d like to develop my own launcher that will allow me to toggle HDR mode prior to calling Steam/GOG to launch a game. Does anyone know if toggling HDR mode is possible in C# please? Thanks for your time, MrCrane.
-
Hello Beautiful People, I do photography as a hobby and also play games. As such, I often use SDR mode for the desktop / photography side, but want to swap to HDR mode for playing some games. Being a bit forgetful, I’ll launch a game from Steam/GOG only realise that I forgot use Win + Alt + B to toggle HDR. Now I have to sit through all the opening movies before I can exit the game, manually turn on HDR then relaunch. I’d like to develop my own launcher that will allow me to toggle HDR mode prior to calling Steam/GOG to launch a game. Does anyone know if toggling HDR mode is possible in C# please? Thanks for your time, MrCrane.
There is an MS API which might let you do it: XDisplayTryEnableHdrMode - Microsoft Game Development Kit | Microsoft Learn[^] but you'd have to work out the DLLImport signature for yourself - I've never wanted to use it!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Hello Beautiful People, I do photography as a hobby and also play games. As such, I often use SDR mode for the desktop / photography side, but want to swap to HDR mode for playing some games. Being a bit forgetful, I’ll launch a game from Steam/GOG only realise that I forgot use Win + Alt + B to toggle HDR. Now I have to sit through all the opening movies before I can exit the game, manually turn on HDR then relaunch. I’d like to develop my own launcher that will allow me to toggle HDR mode prior to calling Steam/GOG to launch a game. Does anyone know if toggling HDR mode is possible in C# please? Thanks for your time, MrCrane.
For something completely different. You could try to create a shortcut or batch file to run an Autohotkey script to change the setting then start the game. GOG games should be easy, and you might be able to run the steam games from the desktop shortcut steam can create. Just a thought. Ron
Jack of all trades, master of none, though often times better than master of one.
-
There is an MS API which might let you do it: XDisplayTryEnableHdrMode - Microsoft Game Development Kit | Microsoft Learn[^] but you'd have to work out the DLLImport signature for yourself - I've never wanted to use it!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!