14/17/18 SDK BitmapInfo SetCustomGamma problem

14/17/18 SDK BitmapInfo SetCustomGamma problem

Anonymous
Not applicable
512 Views
1 Reply
Message 1 of 2

14/17/18 SDK BitmapInfo SetCustomGamma problem

Anonymous
Not applicable

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 ?

 

 

0 Likes
513 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

What's odd is that when I use the BitmapInfo::SetGamma() only, it is working fine for avi but not for jpg, tga, tiff, and so on.

0 Likes