/** * Encodes and writes pixel data */ protected void WritePixels() { LZWEncoder encoder = new LZWEncoder(width, height, indexedPixels, colorDepth); encoder.Encode(fs); }
/** * Encodes and writes pixel data */ protected void WritePixels() { indexedPixels = new byte[256]; for (int Idx = 0; Idx < 256; Idx++) { indexedPixels[Idx] = (byte)Idx; } LZWEncoder encoder = new LZWEncoder(width, height, indexedPixels, colorDepth); encoder.Encode(fs); }