
Originally Posted by
momanz
I was thinking something more like allowing complete control over each of the color channels. For example, your ini file could look something like...
IndependentColorChannels <yes, no>
DayRed <Brightness value>,<Contrast value>, <Gamma value>
DayBlue <Brightness value>,<Contrast value>, <Gamma value>
DayGreen <Brightness value>,<Contrast value>, <Gamma value>
NightRed <Brightness value>,<Contrast value>, <Gamma value>
NightBlue <Brightness value>,<Contrast value>, <Gamma value>
NightGreen <Brightness value>,<Contrast value>, <Gamma value>
If "IdependentColorChannels" is set to yes then the above format or something similar can be used to change/set the screen parameters. If it is set to no you could read values from the existing fields in the ini file.
Perhaps a better way to set things up would be to transpose the matrix so ...
DayContrast <Red>, <Blue>,<Green>
DayBrightness <Red>, <Blue>,<Green>
DayGamma <Red>, <Blue>,<Green>
NightContrast <Red>, <Blue>,<Green>
NightBrightness <Red>, <Blue>,<Green>
NightGamma <Red>, <Blue>,<Green>
and when the independentcolorchannels flag is set to "off" the data in the <red> field is used to set the display parameters and the other values are ignored.
I think the second method will integrate with your app quite nicely if you choose to implement it.
Cheers,
-momanz
Bookmarks