public static bool SetDisplayDitherState(ADLDisplayInfo display, ADLDitherState ditherState) { var del = ADL.GetDelegate <ADL.ADL_Display_DitherState_Set>(); if (display.DisplayID.DisplayPhysicalIndex >= 0 && del != null) { var ADLRet = del(display.DisplayID.DisplayLogicalAdapterIndex, display.DisplayID.DisplayLogicalIndex, (int)ditherState); return(CheckError(ADLRet, nameof(ADL.ADL_Display_DitherState_Set))); } return(false); }
public bool SetDithering(ADLDitherState ditherState) { var display = GetCurrentDisplay(); return(ADLWrapper.SetDisplayDitherState(display, ditherState)); }