C# Class SwfDotNet.IO.Tags.JpegTableTag

JPEGTableTag defines an encoding table for JPEG images.

The encoding table is shared between all images defined using the DefineBitsTag class so there should only be one JpegTableTag object defined in a movie.

The JpegTableTag class is not essential to define JPEG encoded images in a movie using the DefineBitsJepg2Tag class. If an JpegTableTag object is created with an empty encoding table then the Flash Player will still display JPEG images defined using DefineBitsTag objects correctly. When an JpegTableTag with an empty encoding table is encoded to a Flash file, the "end of stream" marker 0xFFD9 is encoded allowing the empty table to be decoded correctly.

The simplest way to use the JpegTableTag and DefineBitsTag classes to define JPEG encoded images is to create an empty encoding table then construct the DefineBitsTag object(s) with the image data from a file:

This tag was introduced in Flash 1.

Inheritance: BaseTag
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode Description
JpegTableTag ( ) : System

Creates a new JpegTableTag instance.

JpegTableTag ( byte jpeg ) : System

Creates a new JpegTableTag instance.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Méthodes protégées

Méthode Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

GetSizeOf() protected méthode

Gets the size of.
protected GetSizeOf ( ) : int
Résultat int

JpegTableTag() public méthode

Creates a new JpegTableTag instance.
public JpegTableTag ( ) : System
Résultat System

JpegTableTag() public méthode

Creates a new JpegTableTag instance.
public JpegTableTag ( byte jpeg ) : System
jpeg byte JPEG data. An array of bytes containing the encoding table data.
Résultat System

ReadData() public méthode

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
Résultat void

Serialize() public méthode

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Résultat void

UpdateData() public méthode

see base class
public UpdateData ( byte version ) : void
version byte
Résultat void