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
Show file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
GetSizeOf ( ) : int

Gets the size of.

Method Details

GetSizeOf() protected method

Gets the size of.
protected GetSizeOf ( ) : int
return int

JpegTableTag() public method

Creates a new JpegTableTag instance.
public JpegTableTag ( ) : System
return System

JpegTableTag() public method

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

ReadData() public method

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

Serialize() public method

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

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void