C# 클래스 ScreenToGif.ImageUtil.GifDecoder

Gif Reader Class
파일 보기 프로젝트 열기: dbremner/ScreenToGif 1 사용 예제들

공개 메소드들

메소드 설명
GetDelay ( int index ) : int

Gets display duration for specified frame.

GetFrame ( int n ) : Image

Gets the image contents of frame n.

GetFrameCount ( ) : int

Gets the number of frames read from file.

GetFrameSize ( ) : Size

Gets image size.

GetImage ( ) : Image

Gets the first (or only) image read.

GetLoopCount ( ) : int

Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely.

Read ( Stream inStream ) : int

Reads GIF image from stream.

Read ( String name ) : int

Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:")

보호된 메소드들

메소드 설명
DecodeImageData ( ) : void

Decodes LZW image data into pixel array. Adapted from John Cristy's ImageMagick.

Error ( ) : bool

The read state.

Init ( ) : void

Initializes or re-initializes reader.

Read ( ) : int

Reads a single byte from the input stream.

ReadBlock ( ) : int

Reads next variable length block from input.

ReadContents ( ) : void

Main file parser. Reads GIF content blocks.

ReadGraphicControlExt ( ) : void

Reads Graphics Control Extension values.

ReadHeader ( ) : void

Reads GIF file header information.

ReadImage ( ) : void

Reads next frame image.

ReadLsd ( ) : void

Reads Logical Screen Descriptor

ReadNetscapeExt ( ) : void

Reads Netscape extenstion to obtain iteration count.

ReadShort ( ) : int

Reads next 16-bit value, LSB first.

ResetFrame ( ) : void

Resets frame state for reading next image.

Skip ( ) : void

Skips variable length blocks up to and including next zero length block.

비공개 메소드들

메소드 설명
GetPixels ( Bitmap bitmap ) : int[]

Creates new frame image from current data (and previous frames as specified by their disposition codes).

ReadColorTable ( int numberColors ) : int[]

Reads color table as 256 RGB integer values

SetPixels ( ) : void
SetPixels ( int pixels ) : void

메소드 상세

DecodeImageData() 보호된 메소드

Decodes LZW image data into pixel array. Adapted from John Cristy's ImageMagick.
protected DecodeImageData ( ) : void
리턴 void

Error() 보호된 메소드

The read state.
protected Error ( ) : bool
리턴 bool

GetDelay() 공개 메소드

Gets display duration for specified frame.
public GetDelay ( int index ) : int
index int Int index of frame.
리턴 int

GetFrame() 공개 메소드

Gets the image contents of frame n.
public GetFrame ( int n ) : Image
n int
리턴 Image

GetFrameCount() 공개 메소드

Gets the number of frames read from file.
public GetFrameCount ( ) : int
리턴 int

GetFrameSize() 공개 메소드

Gets image size.
public GetFrameSize ( ) : Size
리턴 System.Drawing.Size

GetImage() 공개 메소드

Gets the first (or only) image read.
public GetImage ( ) : Image
리턴 Image

GetLoopCount() 공개 메소드

Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely.
public GetLoopCount ( ) : int
리턴 int

Init() 보호된 메소드

Initializes or re-initializes reader.
protected Init ( ) : void
리턴 void

Read() 보호된 메소드

Reads a single byte from the input stream.
protected Read ( ) : int
리턴 int

Read() 공개 메소드

Reads GIF image from stream.
public Read ( Stream inStream ) : int
inStream Stream BufferedInputStream containing GIF file.
리턴 int

Read() 공개 메소드

Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:")
public Read ( String name ) : int
name String String containing source.
리턴 int

ReadBlock() 보호된 메소드

Reads next variable length block from input.
protected ReadBlock ( ) : int
리턴 int

ReadContents() 보호된 메소드

Main file parser. Reads GIF content blocks.
protected ReadContents ( ) : void
리턴 void

ReadGraphicControlExt() 보호된 메소드

Reads Graphics Control Extension values.
protected ReadGraphicControlExt ( ) : void
리턴 void

ReadHeader() 보호된 메소드

Reads GIF file header information.
protected ReadHeader ( ) : void
리턴 void

ReadImage() 보호된 메소드

Reads next frame image.
protected ReadImage ( ) : void
리턴 void

ReadLsd() 보호된 메소드

Reads Logical Screen Descriptor
protected ReadLsd ( ) : void
리턴 void

ReadNetscapeExt() 보호된 메소드

Reads Netscape extenstion to obtain iteration count.
protected ReadNetscapeExt ( ) : void
리턴 void

ReadShort() 보호된 메소드

Reads next 16-bit value, LSB first.
protected ReadShort ( ) : int
리턴 int

ResetFrame() 보호된 메소드

Resets frame state for reading next image.
protected ResetFrame ( ) : void
리턴 void

Skip() 보호된 메소드

Skips variable length blocks up to and including next zero length block.
protected Skip ( ) : void
리턴 void