14/17/18 SDK BitmapInfo SetCustomGamma problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
I am actually programming a global utility plugin for our company with the 2014/2017 and lately the 2018 SDK's.
One feature consist to save each viewport frames as a bitmap via the Graphic Window GetDIB.
(Like the make preview tool.)
The problem appear when I try to set the gamma or the custom gamma.
First I tried to set the gamma through the BitmapInfo::SetGamma function.
The values retrieved with the BitmapInfo::GetEffectiveGamma() and Bitmap::Gamma() functions seems correct.
However the images are too bright even with a 2.2 gamma.
Then I tried to set the gamma through the BitmapInfo::SetCustomGamma() function with a gamma of 2.2.
The values retrieved with the BitmapInfo::GetEffectiveGamma() and Bitmap::Gamma() functions are still to 1.0.(Why ??)
Lately I tried to use the GammaManager::SetFileInGamma() and GammaManager::SetFileOutGamma(), but it doesn't work either.
It seems that the BMM_CUSTOM_GAMMA is not taken into account.
Is there someone who already had this problem ?