/** * Encodes and writes pixel data */ protected void WritePixels() { var encoder = new LZWEncoder(width, height, indexedPixels, colorDepth); encoder.Encode(fs); }