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
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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