int NextPixel() { if (curPixel == pixAry.Length) return EOF; curPixel++; return pixAry [curPixel - 1] & 0xff; }