C# Class 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

Inheritance: ISwfSerializer
Mostra file Open project: bladecoding/SwfExport Class Usage Examples

Public Properties

Property Type Description
MAX_VERSION int
signature string

Public Methods

Method Description
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.

Method Details

ReadData() public method

Reads the data from a binary file
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

SwfHeader() public method

Constructor.
public SwfHeader ( ) : System.Text
return System.Text

SwfHeader() public method

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.
return System.Text

Property Details

MAX_VERSION public_oe static_oe property

Maximum swf version supported
public static int MAX_VERSION
return int

signature public_oe property

Signature property ('FWS' or 'CWS').
public string signature
return string