C# Класс 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.

Наследование: BaseTag, DefineTag
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
characterId ushort
jpegData byte[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DecompileToStream ( Stream stream ) : void

Decompiles to stream.

Описание методов

DecompileToFile() публичный Метод

Decompiles to file.
public DecompileToFile ( string fileName ) : void
fileName string Name of the file.
Результат void

DecompileToImage() публичный Метод

Decompiles to image.
public DecompileToImage ( ) : Image
Результат Image

DefineBitsJpeg2Tag() публичный Метод

Creates a new DefineBitsJpeg2Tag instance.
public DefineBitsJpeg2Tag ( ) : System
Результат System

DefineBitsJpeg2Tag() публичный Метод

Creates a new DefineBitsJpeg2Tag instance.
public DefineBitsJpeg2Tag ( ushort id, byte image ) : System
id ushort Id.
image byte Image.
Результат System

FromFile() публичный статический Метод

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.
Результат DefineBitsJpeg2Tag

FromImage() публичный статический Метод

Construct a new DefineBitsJpeg2Tag object from an image object.
public static FromImage ( ushort characterId, Image image ) : DefineBitsJpeg2Tag
characterId ushort Character id.
image Image Image.
Результат DefineBitsJpeg2Tag

FromStream() публичный статический Метод

Construct a new DefineBitsJpeg2Tag object from a stream.
public static FromStream ( ushort characterId, Stream stream ) : DefineBitsJpeg2Tag
characterId ushort Character id.
stream Stream Stream.
Результат DefineBitsJpeg2Tag

GetSizeOf() публичный Метод

Gets the size of.
public GetSizeOf ( ) : int
Результат int

ReadData() публичный Метод

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
Результат void

Serialize() публичный Метод

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Результат void

UpdateData() публичный Метод

see base class
public UpdateData ( byte version ) : void
version byte
Результат void

Описание свойств

characterId защищенное свойство

The character Id
protected ushort characterId
Результат ushort

jpegData защищенное свойство

The jpeg data bytes
protected byte[] jpegData
Результат byte[]