/** * Encodes and writes pixel data */ private void WritePixels() { LZWEncoder encoder = new LZWEncoder(_indexedPixels, _colorDepth); encoder.Encode(_fs); }