C# Класс ScreenToGif.ImageUtil.GifEncoder2.GifFile

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddFrame() публичный Метод

public AddFrame ( string path, System.Windows.Int32Rect rect, int delay = 66 ) : void
path string
rect System.Windows.Int32Rect
delay int
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GifFile() публичный Метод

public GifFile ( Stream stream, System.Windows.Media.Color transparent, int repeatCount ) : System
stream Stream
transparent System.Windows.Media.Color
repeatCount int
Результат System

GifFile() публичный Метод

public GifFile ( Stream stream, int repeatCount ) : System
stream Stream
repeatCount int
Результат System