C# Class Recurity.Swf.TagHandler.DefineBitsJPEG2

This tag defines a bitmap character with JPEG compression.

It differs from DefineBits in that it contains both the JPEG

encoding table and the JPEG image data. This tag allows multiple

JPEG images with differing encoding tables to be defined within a

single Swf file. The data in this tag begins with the JPEG SOI

marker 0xFF, 0xD8 and ends with the EOI

marker 0xFF, 0xD9. Before version 8 of the Swf file format,

Swf files could contain an erroneous header of 0xFF, 0xD9, 0xFF, 0xD8

before the JPEG SOI marker. In addition to specifying JPEG data,

DefineBitsJPEG2 can also contain PNG image data and non-animated

GIF89a image data. If ImageData begins with the eight bytes

0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A, the ImageData contains

PNG data. If ImageData begins with the six bytes

0x47 0x49 0x46 0x38 0x39 0x61, the ImageData contains GIF89a data.

Inheritance: AbstractTagHandler, ISwfCharacter
Afficher le fichier Open project: rtezli/Blitzableiter Class Usage Examples

Méthodes publiques

Méthode Description
DefineBitsJPEG2 ( byte InitialVersion ) : System

This tag defines a bitmap character with JPEG compression.

ToString ( ) : string

Converts the value of this instance to a System.String.

Verify ( ) : bool

Verifies this object and its components for documentation compliance.

Write ( Stream output ) : void

Writes a tag back to a stream.

Méthodes protégées

Méthode Description
Parse ( ) : void

Private Methods

Méthode Description
VerifyGIF98a ( ) : bool

Verifies this object and its component for documentation compliance.

VerifyJPEG ( ) : bool

Verifies this object and its component for documentation compliance.

VerifyPNG ( ) : bool

Verifies this object and its component for documentation compliance.

Method Details

DefineBitsJPEG2() public méthode

This tag defines a bitmap character with JPEG compression.
public DefineBitsJPEG2 ( byte InitialVersion ) : System
InitialVersion byte The version of the Swf file using this tag.
Résultat System

Parse() protected méthode

protected Parse ( ) : void
Résultat void

ToString() public méthode

Converts the value of this instance to a System.String.
public ToString ( ) : string
Résultat string

Verify() public méthode

Verifies this object and its components for documentation compliance.
public Verify ( ) : bool
Résultat bool

Write() public méthode

Writes a tag back to a stream.
public Write ( Stream output ) : void
output Stream The stream to write to.
Résultat void