C# Class ScreenToGif.Encoding.GifDecoder

Gif Reader Class
Datei anzeigen 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_oe static_oe property

protected static int MaxStackSize
return int

STATUS_FORMAT_ERROR public_oe static_oe property

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

STATUS_OPEN_ERROR public_oe static_oe property

public static int STATUS_OPEN_ERROR
return int

act protected_oe property

protected int[] act
return int[]

bgColor protected_oe property

protected int bgColor
return int

bgIndex protected_oe property

protected int bgIndex
return int

bitmap protected_oe property

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

block protected_oe property

protected byte[] block
return byte[]

blockSize protected_oe property

protected int blockSize
return int

delay protected_oe property

protected int delay
return int

dispose protected_oe property

protected int dispose
return int

frameCount protected_oe property

protected int frameCount
return int

frames protected_oe property

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

gct protected_oe property

protected int[] gct
return int[]

gctFlag protected_oe property

protected bool gctFlag
return bool

gctSize protected_oe property

protected int gctSize
return int

height protected_oe property

protected int height
return int

image protected_oe property

protected Image image
return Image

inStream protected_oe property

protected Stream inStream
return Stream

interlace protected_oe property

protected bool interlace
return bool

ix protected_oe property

protected int ix
return int

lastBgColor protected_oe property

protected int lastBgColor
return int

lastDispose protected_oe property

protected int lastDispose
return int

lastImage protected_oe property

protected Image lastImage
return Image

lastRect protected_oe property

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

lct protected_oe property

protected int[] lct
return int[]

lctFlag protected_oe property

protected bool lctFlag
return bool

lctSize protected_oe property

protected int lctSize
return int

loopCount protected_oe property

protected int loopCount
return int

pixelAspect protected_oe property

protected int pixelAspect
return int

pixelStack protected_oe property

protected byte[] pixelStack
return byte[]

pixels protected_oe property

protected byte[] pixels
return byte[]

prefix protected_oe property

protected short[] prefix
return short[]

status protected_oe property

protected int status
return int

suffix protected_oe property

protected byte[] suffix
return byte[]

transIndex protected_oe property

protected int transIndex
return int

transparency protected_oe property

protected bool transparency
return bool

width protected_oe property

protected int width
return int