/// <summary> /// Encodes and writes pixel data. /// </summary> private void WritePixels(int width, int height) { var encoder = new LZWEncoder(width, height, _indexedPixels, _colorDepth); encoder.Encode(_fs); }