C# 클래스 ScreenToGif.FileWriters.GifWriter.LzwEncoder

Image compression routines.
파일 보기 프로젝트 열기: dbremner/ScreenToGif 1 사용 예제들

공개 메소드들

메소드 설명
Encode ( Stream os ) : void

Write all data into Stream.

LzwEncoder ( int width, int height, byte pixels, int colorDepth ) : System

Constructor of the compression class.

비공개 메소드들

메소드 설명
Add ( byte c, Stream outs ) : void

Add a character to the end of the current packet, and if it is 254 characters, flush the packet to disk.

ClearTable ( Stream outs ) : void

Clear out the hash table for block compress.

Compress ( int initBits, Stream outs ) : void
Flush ( Stream outs ) : void

Flush the packet to disk, and reset the accumulator

MaxCode ( int numBits ) : int
NextPixel ( ) : int

Return the next pixel from the image.

Output ( int code, Stream outs ) : void
ResetCodeTable ( int hsize ) : void

Reset code table.

메소드 상세

Encode() 공개 메소드

Write all data into Stream.
public Encode ( Stream os ) : void
os Stream The Stream to write.
리턴 void

LzwEncoder() 공개 메소드

Constructor of the compression class.
public LzwEncoder ( int width, int height, byte pixels, int colorDepth ) : System
width int The image Width
height int The image Height
pixels byte All the pixels
colorDepth int The Color depth of the image
리턴 System