add setWhite api in koptcontext