C# Class SwfDotNet.IO.Tags.DefineBitsJpeg2Tag

DefineBitsJpeg2Tag is used to define a JPEG encoded image with an integrated encoding table.

It extends the DefineBitsTag class by including a separate encoding table, rather than using an JpegTable object to store the encoding table. This allows multiple JPEG images with different amounts of compression to be included within a Flash file.

This tag was introduced in Flash 2.

Inheritance: BaseTag, DefineTag
显示文件 Open project: bladecoding/SwfExport Class Usage Examples

Protected Properties

Property Type Description
characterId ushort
jpegData byte[]

Public Methods

Method Description
DecompileToFile ( string fileName ) : void

Decompiles to file.

DecompileToImage ( ) : Image

Decompiles to image.

DefineBitsJpeg2Tag ( ) : System

Creates a new DefineBitsJpeg2Tag instance.

DefineBitsJpeg2Tag ( ushort id, byte image ) : System

Creates a new DefineBitsJpeg2Tag instance.

FromFile ( ushort characterId, string fileName ) : DefineBitsJpeg2Tag

Construct a new DefineBitsJpeg2Tag object from a file.

FromImage ( ushort characterId, Image image ) : DefineBitsJpeg2Tag

Construct a new DefineBitsJpeg2Tag object from an image object.

FromStream ( ushort characterId, Stream stream ) : DefineBitsJpeg2Tag

Construct a new DefineBitsJpeg2Tag object from a stream.

GetSizeOf ( ) : int

Gets the size of.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Private Methods

Method Description
DecompileToStream ( Stream stream ) : void

Decompiles to stream.

Method Details

DecompileToFile() public method

Decompiles to file.
public DecompileToFile ( string fileName ) : void
fileName string Name of the file.
return void

DecompileToImage() public method

Decompiles to image.
public DecompileToImage ( ) : Image
return Image

DefineBitsJpeg2Tag() public method

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

DefineBitsJpeg2Tag() public method

Creates a new DefineBitsJpeg2Tag instance.
public DefineBitsJpeg2Tag ( ushort id, byte image ) : System
id ushort Id.
image byte Image.
return System

FromFile() public static method

Construct a new DefineBitsJpeg2Tag object from a file.
public static FromFile ( ushort characterId, string fileName ) : DefineBitsJpeg2Tag
characterId ushort Character id.
fileName string Name of the file.
return DefineBitsJpeg2Tag

FromImage() public static method

Construct a new DefineBitsJpeg2Tag object from an image object.
public static FromImage ( ushort characterId, Image image ) : DefineBitsJpeg2Tag
characterId ushort Character id.
image Image Image.
return DefineBitsJpeg2Tag

FromStream() public static method

Construct a new DefineBitsJpeg2Tag object from a stream.
public static FromStream ( ushort characterId, Stream stream ) : DefineBitsJpeg2Tag
characterId ushort Character id.
stream Stream Stream.
return DefineBitsJpeg2Tag

GetSizeOf() public method

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

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

Property Details

characterId protected_oe property

The character Id
protected ushort characterId
return ushort

jpegData protected_oe property

The jpeg data bytes
protected byte[] jpegData
return byte[]