C# Class ImageTools.IO.Gif.LZWDecoder

Uncrompress data using the LZW algorithmus.
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
DecodePixels ( int width, int height, int dataSize ) : byte[]

Decodes and uncompresses all pixel indices from the stream.

LZWDecoder ( Stream stream ) : System

Initializes a new instance of the LZWDecoder class and sets the stream, where the compressed data should be read from.

Private Methods

Method Description
ReadBlock ( ) : byte[]
ReadBytes ( int length ) : byte[]

Method Details

DecodePixels() public method

Decodes and uncompresses all pixel indices from the stream.
public DecodePixels ( int width, int height, int dataSize ) : byte[]
width int The width of the pixel index array.
height int The height of the pixel index array.
dataSize int Size of the data.
return byte[]

LZWDecoder() public method

Initializes a new instance of the LZWDecoder class and sets the stream, where the compressed data should be read from.
is null /// (Nothing in Visual Basic).
public LZWDecoder ( Stream stream ) : System
stream Stream The stream. where to read from.
return System