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
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Protected Properties

Свойство Type Description
characterId ushort
jpegData byte[]

Méthodes publiques

Méthode 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

Méthode Description
DecompileToStream ( Stream stream ) : void

Decompiles to stream.

Method Details

DecompileToFile() public méthode

Decompiles to file.
public DecompileToFile ( string fileName ) : void
fileName string Name of the file.
Résultat void

DecompileToImage() public méthode

Decompiles to image.
public DecompileToImage ( ) : Image
Résultat Image

DefineBitsJpeg2Tag() public méthode

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

DefineBitsJpeg2Tag() public méthode

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

FromFile() public static méthode

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.
Résultat DefineBitsJpeg2Tag

FromImage() public static méthode

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

FromStream() public static méthode

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

GetSizeOf() public méthode

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

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

Property Details

characterId protected_oe property

The character Id
protected ushort characterId
Résultat ushort

jpegData protected_oe property

The jpeg data bytes
protected byte[] jpegData
Résultat byte[]