C# Class ScreenToGif.ImageUtil.GifEncoder2.GifFile

Inheritance: IDisposable
Mostrar archivo Open project: dbremner/ScreenToGif Class Usage Examples

Private Properties

Property Type Description
CalculateColorTableSize void
ConvertToByte byte
FindTransparentColorIndex int
GeneratePalette void
GetMaximumColorCount int
IndexPixels byte[]
ToBitValues bool[]
WriteApplicationExtension void
WriteByte void
WriteGraphicControlExtension void
WriteImage void
WriteImageDescriptor void
WriteLogicalScreenDescriptor void
WritePalette void
WriteShort void
WriteString void

Public Methods

Method Description
AddFrame ( string path, System.Windows.Int32Rect rect, int delay = 66 ) : void
Dispose ( ) : void
GifFile ( Stream stream, System.Windows.Media.Color transparent, int repeatCount ) : System
GifFile ( Stream stream, int repeatCount ) : System

Private Methods

Method Description
CalculateColorTableSize ( ) : void
ConvertToByte ( BitArray bits ) : byte
FindTransparentColorIndex ( ) : int
GeneratePalette ( string path ) : void
GetMaximumColorCount ( ) : int

Calculates the maximum number of colors for the specified Logical Screen Description value.

IndexPixels ( List palette ) : byte[]
ToBitValues ( int number ) : bool[]

Transforms a number to a bool array of 3 positions.

WriteApplicationExtension ( ) : void
WriteByte ( int value ) : void
WriteGraphicControlExtension ( int delay ) : void
WriteImage ( ) : void
WriteImageDescriptor ( System.Windows.Int32Rect rect ) : void
WriteLogicalScreenDescriptor ( System.Windows.Int32Rect rect ) : void
WritePalette ( ) : void
WriteShort ( int value ) : void

Writes a int value as 2 bytes, but inverted. 100 = 64 00 instead of 00 64.

WriteString ( string value ) : void

Method Details

AddFrame() public method

public AddFrame ( string path, System.Windows.Int32Rect rect, int delay = 66 ) : void
path string
rect System.Windows.Int32Rect
delay int
return void

Dispose() public method

public Dispose ( ) : void
return void

GifFile() public method

public GifFile ( Stream stream, System.Windows.Media.Color transparent, int repeatCount ) : System
stream Stream
transparent System.Windows.Media.Color
repeatCount int
return System

GifFile() public method

public GifFile ( Stream stream, int repeatCount ) : System
stream Stream
repeatCount int
return System