예제 #1
0
        /**
         * Encodes and writes pixel data
         */
        protected void WritePixels()
        {
            LZWEncoder encoder =
                new LZWEncoder(width, height, indexedPixels, colorDepth);

            encoder.Encode(fs);
        }
예제 #2
0
        /**
         * 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);
        }
예제 #3
0
 /**
  * Encodes and writes pixel data
  */
 protected void WritePixels()
 {
     LZWEncoder encoder =
         new LZWEncoder(width, height, indexedPixels, colorDepth);
     encoder.Encode(fs);
 }