;  for (y = 0; y < height; y++) //=======================================  {  if ((y % i0) == 0) fm0.progressBar0.PerformStep();  cnt = 0; xbeg = 0; mpre = 000;  for (c = 0; c < nbyte; c++) ColBeg[c] = Grid[nbyte * width * y + c];  for (x = 0; x < width; x++) //======================================  {  msk = Mask.Grid[x + width * y];  if (mpre > 0 && msk == 0) //----------------------------------------  {  cnt = 0; xbeg = x - 0;  for (c = 0; c < nbyte; c++) ColBeg[c] = Grid[nbyte * (x - 0 + width * y) + c];  }  if (mpre == 0 && msk == 0) //----------------------------------------  {  cnt++;  }  if (mpre == 0 && msk > 0) //----------------------------------------  {  cnt++; xend = x;  for (c = 0; c < nbyte; c++) ColEnd[c] = Grid[nbyte * (x + width * y) + c];  for (xx = xbeg + 0; xx < xend; xx++)  {  for (c = 0; c < nbyte; c++) Grid[nbyte * (xx + width * y) + c] =  (byte)((ColBeg[c] * (xend - xx) + ColEnd[c] * (xx - xbeg)) / cnt);  }  }  mpre = msk;  } //=============== end for (x=0; ... =============================  } //================ end for (y=0; ... ==============================  // 