scripting:api:settings:adapt-contrast

AdaptContrast

Method of ISettings

Adopt contrast ratio of fore on back color

var pColor = Settings.AdaptContrast(clrFore, clrBack);
pColor = Settings.AdaptContrast clrFore, clrBack
OLE_COLOR Color;
HRESULT hr = Settings.AdaptContrast(clrFore, clrBack, &Color);