C# Class ScreenToGif.Encoding.GifDecoder

Gif Reader Class
Show file Open project: dbremner/ScreenToGif

Public Properties

Property Type Description
STATUS_FORMAT_ERROR int
STATUS_OPEN_ERROR int

Protected Properties

Property Type Description
MaxStackSize int
act int[]
bgColor int
bgIndex int
bitmap System.Drawing.Bitmap
block byte[]
blockSize int
delay int
dispose int
frameCount int
frames System.Collections.ArrayList
gct int[]
gctFlag bool
gctSize int
height int
image Image
inStream Stream
interlace bool
ix int
lastBgColor int
lastDispose int
lastImage Image
lastRect System.Drawing.Rectangle
lct int[]
lctFlag bool
lctSize int
loopCount int
pixelAspect int
pixelStack byte[]
pixels byte[]
prefix short[]
status int
suffix byte[]
transIndex int
transparency bool
width int

Public Methods

Method Description
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
GetLoopCount ( ) : int
Read ( Stream inStream ) : int
Read ( String name ) : int

Protected Methods

Method Description
DecodeImageData ( ) : void

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

Error ( ) : bool
Init ( ) : void
Read ( ) : int
ReadBlock ( ) : int
ReadContents ( ) : void
ReadGraphicControlExt ( ) : void
ReadHeader ( ) : void
ReadImage ( ) : void
ReadLSD ( ) : void
ReadNetscapeExt ( ) : void
ReadShort ( ) : int
ResetFrame ( ) : void
SetPixels ( ) : void
Skip ( ) : void

Private Methods

Method Description
GetPixels ( Bitmap bitmap ) : int[]

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

ReadColorTable ( int ncolors ) : int[]
SetPixels ( int pixels ) : void

Method Details

DecodeImageData() protected method

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

Error() protected method

protected Error ( ) : bool
return bool

GetDelay() public method

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

GetFrame() public method

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

GetFrameCount() public method

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

GetFrameSize() public method

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

GetImage() public method

public GetImage ( ) : Image
return Image

GetLoopCount() public method

public GetLoopCount ( ) : int
return int

Init() protected method

protected Init ( ) : void
return void

Read() protected method

protected Read ( ) : int
return int

Read() public method

public Read ( Stream inStream ) : int
inStream Stream
return int

Read() public method

public Read ( String name ) : int
name String
return int

ReadBlock() protected method

protected ReadBlock ( ) : int
return int

ReadContents() protected method

protected ReadContents ( ) : void
return void

ReadGraphicControlExt() protected method

protected ReadGraphicControlExt ( ) : void
return void

ReadHeader() protected method

protected ReadHeader ( ) : void
return void

ReadImage() protected method

protected ReadImage ( ) : void
return void

ReadLSD() protected method

protected ReadLSD ( ) : void
return void

ReadNetscapeExt() protected method

protected ReadNetscapeExt ( ) : void
return void

ReadShort() protected method

protected ReadShort ( ) : int
return int

ResetFrame() protected method

protected ResetFrame ( ) : void
return void

SetPixels() protected method

protected SetPixels ( ) : void
return void

Skip() protected method

protected Skip ( ) : void
return void

Property Details

MaxStackSize protected static property

protected static int MaxStackSize
return int

STATUS_FORMAT_ERROR public static property

File read status: Error decoding file (may be partially decoded)
public static int STATUS_FORMAT_ERROR
return int

STATUS_OPEN_ERROR public static property

public static int STATUS_OPEN_ERROR
return int

act protected property

protected int[] act
return int[]

bgColor protected property

protected int bgColor
return int

bgIndex protected property

protected int bgIndex
return int

bitmap protected property

protected Bitmap,System.Drawing bitmap
return System.Drawing.Bitmap

block protected property

protected byte[] block
return byte[]

blockSize protected property

protected int blockSize
return int

delay protected property

protected int delay
return int

dispose protected property

protected int dispose
return int

frameCount protected property

protected int frameCount
return int

frames protected property

protected ArrayList,System.Collections frames
return System.Collections.ArrayList

gct protected property

protected int[] gct
return int[]

gctFlag protected property

protected bool gctFlag
return bool

gctSize protected property

protected int gctSize
return int

height protected property

protected int height
return int

image protected property

protected Image image
return Image

inStream protected property

protected Stream inStream
return Stream

interlace protected property

protected bool interlace
return bool

ix protected property

protected int ix
return int

lastBgColor protected property

protected int lastBgColor
return int

lastDispose protected property

protected int lastDispose
return int

lastImage protected property

protected Image lastImage
return Image

lastRect protected property

protected Rectangle,System.Drawing lastRect
return System.Drawing.Rectangle

lct protected property

protected int[] lct
return int[]

lctFlag protected property

protected bool lctFlag
return bool

lctSize protected property

protected int lctSize
return int

loopCount protected property

protected int loopCount
return int

pixelAspect protected property

protected int pixelAspect
return int

pixelStack protected property

protected byte[] pixelStack
return byte[]

pixels protected property

protected byte[] pixels
return byte[]

prefix protected property

protected short[] prefix
return short[]

status protected property

protected int status
return int

suffix protected property

protected byte[] suffix
return byte[]

transIndex protected property

protected int transIndex
return int

transparency protected property

protected bool transparency
return bool

width protected property

protected int width
return int