 0; cnt = 0; xbeg = 0; mpre = 000;  for (c = 0; c < nbyte; c++) ColBeg[c] = Grid[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++) 