C# Класс SwfDotNet.IO.SwfHeader

Swf file header object contains main informations about the animation.

The header contains those informations:

  • File signature, to indicate of the file is compressed or not
  • Swf version (1 to 7)
  • Lenght of entire file in bytes
  • Frame size in twips
  • Frame delay in 8.8 fixed number of frame per second
  • Total number of frames in the movie

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

Открытые свойства

Свойство Тип Описание
MAX_VERSION int
signature string

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

Метод Описание
ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data from a binary file

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

SwfHeader ( ) : System.Text

Constructor.

SwfHeader ( string signature, byte version, uint fileSize, Rect dimensions, float fps, ushort frames ) : System.Text

Creates a new SwfHeader instance.

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

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

Reads the data from a binary file
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
Результат void

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

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Результат void

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

Constructor.
public SwfHeader ( ) : System.Text
Результат System.Text

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

Creates a new SwfHeader instance.
public SwfHeader ( string signature, byte version, uint fileSize, Rect dimensions, float fps, ushort frames ) : System.Text
signature string Signature.
version byte Version.
fileSize uint Size of the file.
dimensions SwfDotNet.IO.Tags.Types.Rect Dimensions.
fps float FPS.
frames ushort Frames.
Результат System.Text

Описание свойств

MAX_VERSION публичное статическое свойство

Maximum swf version supported
public static int MAX_VERSION
Результат int

signature публичное свойство

Signature property ('FWS' or 'CWS').
public string signature
Результат string